is-valid-date

Validate date string

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-valid-date
200.0.110 years ago10 years agoMinified + gzip package size for is-valid-date in KB

Readme

is-valid-date
Validate date string.

Valid formats

DD/MM/YYYY, DD-MM-YYYY, DD.MM.YYYY
Install
npm install is-valid-date
Usage
var isValidDate = require('is-valid-date');

isValidDate('21/09/1991') // true
isValidDate('21/9/1991') // true
isValidDate('21.09.1991') // true
isValidDate('21-09-1991') // true
isValidDate('21-14.1991') // false
isValidDate('21/09/19991') // false
License
MIT