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