Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
((0?[13578]|10|12)(-|\/)((0[0-9])|([12])([0-9]?)|(3[01]?))(-|\/)((\d{4})|(\d{2}))|(0?[2469]|11)(-|\/)((0[0-9])|([12])([0-9]?)|(3[0]?))(-|\/)((\d{4}|\d{2})))
|
Description |
Regex used in .NET to validate a date. Matches the following formats mm/dd/yy, mm/dd/yyyy, mm-dd-yy, mm-dd-yyyy
This covers days with 30 or 31 days but does not handle February, it is allowed 30 days.
|
Matches |
1/31/2002 | 04-30-02 | 12-01/2002
|
Non-Matches |
2/31/2002 | 13/0/02 | Jan 1, 2001
|
Author |
Rating:
Sean McAnally
|
Displaying page
of
pages;
Items to