I'm reading from a RSS feed which outputs date/time in the following format:
Day, DD Mon YYYY HH:MM:SS OFFSET
For example,
Tue, 24 Apr 2012 08:15:00 -0700
Using JavaScript,I need to convert it to an ISO8601 string (via Date.toISOString()
preferably).
Any assistance would be appreciated.
I haven't really worked with time in JS before, so I haven't got many ideas. Would it be possible to switch the offset to a time zone, and convert it as a JS Date object?