Socket
Socket
Sign inDemoInstall

vali-date

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vali-date

Validate a date


Version published
Weekly downloads
541K
decreased by-10.08%
Maintainers
1
Install size
3.27 kB
Created
Weekly downloads
 

Readme

Source

vali-date Build Status

Validate a date.

Install

$ npm install --save vali-date

Usage

const validate = require('vali-date');

validate('foo');
//=> false

validate('2015-12-15T12:00:00Z');
//=> true

validate('2015-12-15T12:00:00+01:00');
//=> true

API

validate(date)

Returns a boolean indicating if the date provided is valid or not.

date

Type: string

The date that should be validated.

License

MIT © Sam Verschueren

Keywords

FAQs

Last updated on 15 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc