shaekhjamal / simple-date-validator

Simple Date Validator Library (NodeJs)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Thank you to all the contributors who help in making this project better 🙌

About

Simple Date Validator Library (NodeJs)

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%