regex-iso-date
Regular expression for ISO date
Last updated 6 years ago by yoshuawuyts .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install regex-iso-date 
SYNC missed versions from official npm registry.

regex-iso-date

NPM version build status Test coverage Downloads

Regular expression for ISO date.

Installation

npm install regex-iso-date

Usage

var regex = require('regex-iso-date');

regex().test('2011-10-05T14:48:00.000Z');
// => true

var match = regex().exec('2011-10-05T14:48:00.000Z');
match[0] // => '2011-10-05T14:48:00.000Z'
match[1] // => '2011'
match[2] // => '10'
match[3] // => '05'
match[4] // => '14:48:00'
match[5] // => '14'
match[6] // => '48'
match[7] // => '00'
match[8] // => '000'

Contributors

See Also

License

MIT

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

1 Versions

  • 1.0.0                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |