Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is Date String A Valid Date?
Message
From
06/07/2001 15:44:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00526801
Message ID:
00527626
Views:
31
>Gary,
>
>To extend Jill's idea a little (so it doesn't rely on SET("DATE") etc), you could use
>
>lcDate = '{^2001-06-31}'
>? empty(eval(lcDate))  && returns .T.
>
>Cheers,
>
>Andrew
>

Andrew,

This method errors out on my system, giving me "Date/Datetime evaluated to an invalid date". It also errors out switching it to lcDate = '{^06-31-2001}'. Does it not generate an error on your system?
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform