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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Check date for format DD-MM-YYYY
Expression
^((((0[1-9]|[1-2][0-9]|3[0-1])[./-](0[13578]|10|12))|((0[1-9]|[1-2][0-9])[./-](02))|(((0[1-9])|([1-2][0-9])|(30))[./-](0[469]|11)))[./-]((19\d{2})|(2[012]\d{2})))$
Description
Date pattern for date format DD-MM-YYYY or DD/MM/YYYY or DD.MM.YYYY. Year value limited from 1900-2299
Matches
01/01/1900 | 29/02/2012 | 31/12/2101
Non-Matches
30/02/2012 | 31/04/2010 | 31.05.2300
Author Rating: The rating for this expression. Yalchin Tagizade
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