is-date-format
v0.1.1
Published
Validate date string with user defined format
Downloads
57
Readme
is-date-format
Validate date string with user defined format. Origin source come from Best way to validate date string format via jQuery - Stack Overflow
Install
$ npm install --save is-date-format
Usage
const isDateFormat = require('is-date-format');
isDateFormat('2015-10-23', 'yyyy-mm-dd');
API
isDateFormat(date, [format])
date
Type: string
String of date
format
Type: string
Date format. ex) yyyy-mm-dd
License
MIT © ragingwind