Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dates
Message
 
 
To
15/10/1999 13:24:15
Todd Wolfe
Certified Marketing Services
Kinderhook, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Dates
Miscellaneous
Thread ID:
00276974
Message ID:
00277022
Views:
33
>I have a character field with a date stored in it in the following format
>
>mm/dd/yy
>
>I need to get this to be in this format ccyymmdd
>
>any suggestions?

SET DATE to mdy
lcDate = dtos(ctod("12/01/99"))
* then set date format back to your usual date format

The good thing about the above is that it uses the VFP settings for determining the century.
Previous
Reply
Map
View

Click here to load this message in the networking platform