Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML datetime format
Message
 
To
25/04/2008 04:38:34
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01313077
Message ID:
01313081
Views:
7
>Hi Borislav,
>WOW !!!!!!!!!!!!!!!!!!!! This is absolutely cool!
>TTOC(DATETIME(),3) return 20080425123751 and need parse line.. I looking for simple way.. for timezone.. will look wwAPI.prg from Rick..
>
>Denis


It returns "2008-04-25T11:39:16" on my computer?
But if you get
yyyymmddhhmmss on your you could use:

? TRANSFORM(TTOC(DATETIME(),3),[@R XXXX-XX-XXTXX:XX:XX])

Check http://news2news.com/vfp/?example=73&function=106 to see how to get your current UTC offset.




>
>>>Hi Denis,
>>>
>>>This is very simple way without timezone...
>>>
>>>
>>>?CHRTRAN("ABCD-EF-GHTIJ:KL:MN","ABCDEFGHIJKLMN",TTOC(DATETIME(),1))
>>>
>>>
>>>MartinaJ
>>>
>>>>Is there a simple way to generate datetime for XML in format (and timezone also)
>>>>2001-09-06-10T09:00:30+02:00
>>>>
>>>>Thanks
>>>>Denis
>>
>>Why not just ? TTOC(DATETIME(),3) (w/o Time zone also :-))
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform