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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details ISO date yyyy.MM.dd and yyyy-MM-dd
Expression
^((((19|20)(([02468][048])|([13579][26])).02.29))|((20[0-9][0-9])|(19[0-9][0-9])).((((0[1-9])|(1[0-2])).((0[1-9])|(1[0-9])|(2[0-8])))|((((0[13578])|(1[02])).31)|(((0[1,3-9])|(1[0-2])).(29|30)))))$
Description
Validates yyyy.MM.dd and yyyy-MM-dd format date,and also verifying leap years.
Matches
2000.02.29 | 1976.11.10 | 1988-02-29
Non-Matches
2001.02.29 | 1980.04.31 | 1977-05-32
Author Rating: The rating for this expression. Silling Péter
   Displaying page 1 of 1 pages; Items 1 to 1

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