date-parse
v0.2.0
Published
Parse date value into valid Date() object or null
Readme
SYNOPSIS
Parse date value into valid Date() object or null. Never returns date object that is invalid and could throw like so:
new Date('not a date').toISOString() // throws RangeError: Invalid time valueUSAGE
var dateParse = require('date-parse');
dateParse('2014-12-30T21:17:46.826Z') // new Date('2014-12-30T21:17:46.826Z')
dateParse('not a date') // null##LICENSE
MIT
