Quick question…
I have a string I receive from an external XML file that is formatted as a Date:
“Tue, 31 Jul 2012 02:35:00 GMT”
I would like to perform a function on that string to produce these results:
Day = “Tuesday”
Month = “July”
Year=“2012”
TimeGMT=“2:35 AM”
TimeEST=“11:35 PM”
For example… is there something similar to the following available in Corona?
DateString=“Tue, 31 Jul 2012 02:35:00 GMT”
Day = DatePart(DateString,“D”)
Month= DatePart(DateString,“M”)
Year= DatePart(DateString,“Y”)
TimeGMT= DatePart(DateString,“T”)
TimeEST= DateAdd (TimeGMT,-3) – Subtract 3 hours from Time
I can’t find any examples in the docs to extract “DateParts” from a string. Any suggestions?
Thanks in advance…
B [import]uid: 64343 topic_id: 29261 reply_id: 329261[/import]