I have the following code
var c = new Date(Date.parse("2011-06-21T14:27:28.593Z"));
console.log(c);
On Chrome it correctly prints out the date on the console. In Safari
it fails. Who is correct and more importantly what is the best way
to handle this?
You can’t really use Date.parse. I suggest you use:
new Date (year, month [, date [, hours [, minutes [, seconds [, ms ] ] ] ] ] )To split the string you could try