Parse and print ISO8601 dates
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md

README.md

iso8601

var d = new Date(1325471624000);

d.toISOString() // => '2012-01-02T02:33:44.000Z'
Date.parse('2012-01-02T02:33:44.000Z') // => 1325471624000