Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Century & DTOC different in VFP6??
Message
From
08/01/2001 10:34:17
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00460546
Message ID:
00460583
Views:
10
>James,
>
>If SET DATE SHORT the DTOC(DateField) gives 7/2/00. If SET DATE LONG, DTOC(DateField) Saturday, July 01, 2000. What I need (and had with VFP5) is 07/01/2000. I have a LOT of legacy code that grabs the year by using SUBSTR(DTOC(DateField),7,4).

Why not use the year function: STR(YEAR(DateField))
Previous
Reply
Map
View

Click here to load this message in the networking platform