Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date String to Date
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00054810
Message ID:
00054816
Views:
34
Thanks, Vlad, that's just about what I did.

Barbara

>AFAIK, there's no such function as STOD() (inverse of DTOS()). The easiest way I know:
>
>
>PARAMETER tcDate
>
>LOCAL lcOldDate, lcDate, ldReturn
>lcOldDate = SET("DATE")
>SET DATE TO YMD
>
>lcDate = STUFF(tcDate, 7, 0, "/")
>lcDate = STUFF(lcDate, 5, 0, "/")
>ldReturn = CTOD(lcDate)
>
>SET DATE TO (lcOldDate)
>
>RETURN ldReturn
>
>
>Vlad
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform