Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function to return a valid date
Message
From
08/11/2001 09:45:15
 
 
To
08/11/2001 09:08:15
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00578964
Message ID:
00579051
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform