JSPM

vali-date

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 781457
  • Score
    100M100P100Q198874F
  • License MIT

Validate a date

Package Exports

  • vali-date

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vali-date) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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