simpledatevalidator
v1.0.3
Published
Simple nodejs module to validate date
Downloads
13
Readme
Simple Date Validator Library
How to install?
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('simpledatevalidator');
// 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