is-date-format

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i is-date-format

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • ragingwind