Title |
Test
Find
Pattern Title
|
Expression |
^(((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|(29[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))$ |
Description |
DD.MM.YY or DD.MM.YYYY
separator could be on choice '.' '/' or '-'
leap years compatible, 00 is treated as year 2000. |
Matches |
29.2.04 | 29/02-2004 | 3.4.05 |
Non-Matches |
29.2.03 | 2902.2004 | 12.31.1975 |
Author |
Rating:
Dany Lauener
|
Source |
Dany Lauener |
Your Rating |
|
Title: change date format
Name: Joe Franko
Date: 3/9/2016 5:34:29 AM
Comment:
any way you can amend the date format to be dd/mm/yy and make it so dd/mm/yyyy is invalid?