Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another date time format
Message
From
26/08/2004 18:49:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/08/2004 18:40:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00936800
Message ID:
00936803
Views:
25
>I have this date time format:
>
>2004-08-25T18:36:52Z
>
>Is there a way to convert that into a datetime VFP format without having to load a dozen of libraries? :)

Two methods come to mind:

1) Use datetime() with six parameters, extracted from specific positions.

2) Convert the "T" to a space (?), eliminate the "Z", and use TTOC().

I can't test it right now.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform