Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert to datetime from strings date and time
Message
From
16/10/2007 07:57:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01260698
Message ID:
01261207
Views:
14
Too obvious!

I had looked at the help, which gave examples of some obscure uses but not the simple use (too simple to document, I assume).

>>How do I convert two strings '12/02/2006' and '13:45:21' into datetime?
>>
>>Thanks
>
>? Ctot('12/02/2006 13:45:21')
>
>[Update]
>That should be used with care, maybe is better to change it to a longer method parsing each portion unless you are absolutely sure about the format, take a look at the help on ctot
Jim Nelson
Newbury Park, CA
Previous
Reply
Map
View

Click here to load this message in the networking platform