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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Date Format
Expression
\b(0?[1-9]|1[0-2])(\-)(0?[1-9]|1[0-9]|2[0-9]|3[0-1])(\-)(200[0-8])\b
Description
Matches the valid date format MM-DD-CCYY Year from 2000 to 2008 and the month will accept till 12 and the day will accept till 31
Matches
01-02-2006 | 12-31-2007 | 1-1-2008
Non-Matches
01-02-1999 | 13-32-2008 | 01/31/2008
Author Rating: Not yet rated. Ajesh Kumar CM
Source
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-2024, RegexAdvice.com | ASP.NET Tutorials