0.2.0 • Published 8 years ago

date-parse v0.2.0

Weekly downloads
42
License
MIT
Repository
github
Last release
8 years ago

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 value

Build Status

USAGE

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

0.2.0

8 years ago

0.1.1

9 years ago

0.1.0

9 years ago