Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date variable
Message
From
16/01/2003 08:39:16
 
 
To
16/01/2003 07:45:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00741945
Message ID:
00742325
Views:
27
>Okay, if "Try to avoid CTOD and CTOT. They are not Y2K compliant. In fact, depending on the setting of SET STRICTDATE, the compiler may complain." is true, what should be done, when you are trying to convert character date stings (or datetime strings) from tables into other tables, and the format of the string depends on the Regional settings of the computer [i.e. English(American) MM-DD-YYYY versus French (Standard) DD-MM-YYYY]

Beth

You can use them, with care. A better or more secure way would be to parse the date and build a date-safe command like DATE(yyyy,mm,dd) or using the strict date format: {^yyyy-mm-dd[,][hh[:mm[:ss]][a|p]]} (e.g. {^2003-01-16}). The presentation of the internal date depends on settings (see SET DATE in the help files).

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform