Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function to return a valid date
Message
De
08/11/2001 09:45:15
 
 
À
08/11/2001 09:08:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00578964
Message ID:
00579051
Vues:
24
Thank You All

Dim.

>>Hello friends,
>>
>>I would like to ask whether there is a way (function or something) which can determine that a specific string contains a valid date for instance :
>>isvaliddate("20011101") would return .t.
>>
>>Thank you
>>Dimitris
>
>Your string looks like to be in YYYYMMDD format.
>
function IsValidDate
>lparameters tcString
>return !empty(ctod(trans(tcString,'@R ^9999/99/99')))
>Cetin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform