novad-iso-date
v1.1.2
Published
2017-04-30T16:00:00.000+0000 -> 2017-04-30T16:00:00.000+00:00
Downloads
5
Readme
novad-iso-date
"Date" in Safari can only parse ISO date string like this: "2017-04-30T16:00:00.000+00:00". If give it a parameter like "2017-04-30T16:00:00.000+0000", "new Date()" will return a bad object
"novad-iso-date" can parse string like this "2017-04-30T16:00:00.000+0000"
installation
npm install novad-iso-date
usage
import ISODate from 'novad-iso-date'
var badISOString = '2017-04-30T16:00:00.000+0000'
var date = new ISODate(badISOString)