An open API service indexing awesome lists of open source software.

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)

Awesome Lists containing this project

README

        

## Simple Date Validator Library

[![Build](https://github.com/arshadkazmi42/simple-date-validator/actions/workflows/nodejs.yml/badge.svg)](https://github.com/arshadkazmi42/simple-date-validator/actions/workflows/nodejs.yml)
[![NPM Version](https://img.shields.io/npm/v/simpledatevalidator.svg)](https://www.npmjs.com/package/simpledatevalidator)
[![NPM Downloads](https://img.shields.io/npm/dt/simpledatevalidator.svg)](https://www.npmjs.com/package/simpledatevalidator)
[![Github Repo Size](https://img.shields.io/github/repo-size/arshadkazmi42/simple-date-validator.svg)](https://github.com/arshadkazmi42/simple-date-validator)
[![LICENSE](https://img.shields.io/npm/l/simpledatevalidator.svg)](https://github.com/arshadkazmi42/simple-date-validator/blob/master/LICENSE)
[![Contributors](https://img.shields.io/github/contributors/arshadkazmi42/simple-date-validator.svg)](https://github.com/arshadkazmi42/simple-date-validator/graphs/contributors)
[![Commit](https://img.shields.io/github/last-commit/arshadkazmi42/simple-date-validator.svg)](https://github.com/arshadkazmi42/simple-date-validator/commits/master)

## How to install?
[![NPM](https://nodei.co/npm/simpledatevalidator.png)](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)