Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i convert a COM DATE to a vfp Date var ?
Message
From
27/07/1999 18:22:18
 
 
To
27/07/1999 17:21:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00246874
Message ID:
00246904
Views:
16
I'm not sure what that type looks like. Is it like 1011900 for {01/01/1900}? If so try this:

TEST.PRG:
PARAMETER i
mydate=PADL(i,8,'0')
mymonth=LEFT(mydate,2)
myday=SUBSTR(mydate,3,2)
myyear=RIGHT(mydate,4)
RETURN CTOD(mymonth+'/'+myday+'/'+myyear)

? TEST(1011900)
01/01/1900
Previous
Reply
Map
View

Click here to load this message in the networking platform