Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Am I missing something here - CTOD()
Message
 
To
06/12/2001 09:38:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00590504
Message ID:
00590561
Views:
19
Claudio,

You have a couple of options;

1. SET STRICTDATE TO 0 to shut off VFPs date checking.
2. Use the {} delimiters for your date;
mybeautifuldate = {  /  /  }
The setting of strictdate is a potential problem as 0 because it allos you to use the CTOD() function which is dependant on the current SET DATE setting;
SET DATE BRITISH
?CTOD("11/12/01") is December 11, 2001
SET DATE AMERICAN
?CTOD("11/12/01") is November 12, 2001
Using a strictdate syntax insure that the set date setting is never an issue. The strictdate way is;
MyBeautifulDate = {^YYYY/MM/DD}
Previous
Reply
Map
View

Click here to load this message in the networking platform