$ gnpm install vali-date
Validate a date.
$ npm install --save vali-date
const validate = require('vali-date');
validate('foo');
//=> false
validate('2015-12-15T12:00:00Z');
//=> true
validate('2015-12-15T12:00:00+01:00');
//=> true
Returns a boolean indicating if the date provided is valid or not.
Type: string
The date that should be validated.
MIT © Sam Verschueren
Copyright 2013 - present © cnpmjs.org | Home |