RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find ISODate string format
Expression
^(\d{4})\D?(0[1-9]|1[0-2])\D?([12]\d|0[1-9]|3[01])(\D?([01]\d|2[0-3])\D?([0-5]\d)\D?([0-5]\d)?)?(\D\d{3}(\D(\d{4})?)?)?$
Description
Matches the ISODate string format from nodejs
Matches
2100-01-01T02:00:00.000Z | 2100-01-01T02:00:00 | 2100-01-01T02:00:00.000-0300 | 2006-12-31 17:58:00 | 20061231175800 | 2006-12-31
Non-Matches
2006-13-36 25:61:62
Author Rating: The rating for this expression. Milrren Mattar
Source Based on "ISO Date Format" by Paul Ward
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials