https://github.com/arshadkazmi42/simple-date-validator
Simple Date Validator Library (NodeJs)
https://github.com/arshadkazmi42/simple-date-validator
data date-format date-format-validator date-time date-validator moment time-validator validator
Last synced: 16 days ago
JSON representation
Simple Date Validator Library (NodeJs)
- Host: GitHub
- URL: https://github.com/arshadkazmi42/simple-date-validator
- Owner: arshadkazmi42
- License: gpl-3.0
- Created: 2018-02-21T12:13:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-15T04:52:00.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T13:11:18.601Z (3 months ago)
- Topics: data, date-format, date-format-validator, date-time, date-validator, moment, time-validator, validator
- Language: JavaScript
- Size: 1.17 MB
- Stars: 3
- Watchers: 1
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Simple Date Validator Library
[](https://github.com/arshadkazmi42/simple-date-validator/actions/workflows/nodejs.yml)
[](https://www.npmjs.com/package/simpledatevalidator)
[](https://www.npmjs.com/package/simpledatevalidator)
[](https://github.com/arshadkazmi42/simple-date-validator)
[](https://github.com/arshadkazmi42/simple-date-validator/blob/master/LICENSE)
[](https://github.com/arshadkazmi42/simple-date-validator/graphs/contributors)
[](https://github.com/arshadkazmi42/simple-date-validator/commits/master)## How to install?
[](https://www.npmjs.com/package/simpledatevalidator/)## How to use?
Pass date and date Format to `isValidDate` function.
Function will validate and return true or false.```javascript
// 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](https://github.com/arshadkazmi42/simpledatevalidator/blob/master/CONTRIBUTING.md)