Skip to content

ragingwind/is-date-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Validate date string with user defined format

Resources

License

Stars

Watchers

Forks

Packages

No packages published