I need to parse a Python-generated datetime string into a Javascript Date object. I went the simplest route:
In Python:
dstring = str(mydate)
example dstring = '2012-05-16 19:20:35.243710-04:00'
In Javascript (with datejs library):
d = new Date(dstring);
This gets me a correct date object in Chrome, but an "Invalid Date" error in Firefox and Safari (on Mac).