Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

simpledatevalidator

1.0.2 • Public • Published

Simple Date Validator Library

npm version Dependencies npm Downloads Codacy Badge

How to install?

NPM

How to use?

Pass date and date format to isValidDate function. Function will validate and return true or false.

// Create Instance of the DateValidator
const DateValidator = require('simple-date-validator');
 
// This will return True
DateValidator.isValidDate("2017-09-27","YYYY-MM-DD");
 
// This will return False
DateValidator.isValidDate("27-09-27","YYYY-MM-DD");

Contributing Guidelines

Read the contributing guidelines here

Contributors

install

npm i simpledatevalidator

Downloadsweekly downloads

1

version

1.0.2

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability