Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DTOS
Message
From
10/07/2001 20:19:55
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: DTOS
Miscellaneous
Thread ID:
00528987
Message ID:
00528989
Views:
16
Hi Michael,

How about:
cDate = "20010601"
dDate = DATE(VAL(LEFT(cDate,4)),VAL(SUBSTR(cDate,5,2)),VAL(RIGHT(cDate,2)))
Hope this helps,
Gavin...

>Is there a function that does the opposite of this and converts a string, such as "20010601", to a date (CTOD() does not work unless there's a "/" in there)?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform