I received DateTime String from Fedex in following format
"2012-06-22T21:39:48-05:00"
I want to convert this string into the TimeZone for ex:-
Fri, 23 Jun 2012 02:39:48 +0000
Is there any method which converts this string into the utc time directly?
I want something similar to following
date_and_time = '%m-%d-%Y %H:%M:%S %Z'
DateTime.strptime("2012-06-22T21:39:48 Central Time (US & Canada)", date_and_time)
Is this what you’re looking for?
Or am I missing something?