regex-iso-date

Regular expression for ISO date

Showing:

Popularity

Downloads/wk

130

GitHub Stars

12

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial