Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/umayr/is-date

minimal utility to check if provided string is a date.
https://github.com/umayr/is-date

Last synced: about 15 hours ago
JSON representation

minimal utility to check if provided string is a date.

Awesome Lists containing this project

README

        

# is-date

minimal utility to check if provided string is a date.

[![build status](https://secure.travis-ci.org/umayr/is-date.png)](http://travis-ci.org/umayr/is-date)

## Installation

```
npm install is-date --save
```

## Usage

```
var isDate = require('is-date');

isDate('2-2-12'); // true
isDate('20-2-12'); // true
isDate('2/2/12'); // true
isDate(2); // false
isDate(2.2); // false
isDate('somestring') // false
isDate('stringwith123') //false
```

## Credits
[Umayr Shahid](https://github.com/umayr/)