is-date
v0.0.1
Published
minimal utility to check if provided string is a date.
Downloads
6
Readme
is-date
minimal utility to check if provided string is a date.
Installation
npm install is-date --save
Usage
var isDate = require('is-date');
isDate('2-2-12'); // true
isDate('20-2-12'); // true
isDate('2/2/12'); // true
isDate(2); // false
isDate(2.2); // false
isDate('somestring') // false
isDate('stringwith123') //false