0.1.1 • Published 8 years ago

is-date-format v0.1.1

Weekly downloads
24
License
MIT
Repository
github
Last release
8 years ago

is-date-format Build Status

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