Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert Text to DateTime
Message
 
To
19/08/2008 14:34:23
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01340048
Message ID:
01340052
Views:
10
This message has been marked as the solution to the initial question of the thread.
>This does not work. The last value is an empty DateTime. How do I do this? What if the date is "20080819" or "08192008" or "08/19/2008" or whatever? Is there one way to convert these?
>
>
>cDate = '080819'
>cTime = '1315'
>cDateTime = cDate + ':' + cTime
>? ctot(transform(cDateTime,'@R ^99/99/99:99:99'))
>
cDate = '080819'
cTime = '1315'
cDateTime = cDate + ' ' + cTime
?cDateTime 
? ctot(transform(cDateTime,'@R ^99/99/99T99:99:99'))
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform