Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CTOD() Totally un-Y2K...
Message
From
04/01/2000 03:11:57
 
 
To
03/01/2000 21:26:40
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00311837
Message ID:
00312196
Views:
24
>I screwed that up .... I meant 01/03.
>
>However, I just realized that this scenario is ALSO true for VFP5!
>
>SET CENTURY OFF
>ld_date = CTOD(DTOC(DATE()))
>SET CENTURY ON
>
>ld_date READS AS 01/03/1900!!!!!!

Just add a SET CENTURY TO 20 before you convert the date.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform