Displaying page
of
pages;
Items to
Title |
Test
Details
Loose DateTime Validation
|
Expression |
^(((0[1-9]{1})|(1[0-2]{1}))\/?(([0-2]{1}[1-9]{1})|(3[0-1]{1}))\/?(([12]{1}[0-9]{1})?[0-9]{2}) ?(([01]{1}[0-9]{1})|(2[0-4]{1}))\:?([0-5]{1}[0-9]{1}))$
|
Description |
This will validate any date (does not check for number of days in month, just 31 days or less) in almost any format as long as the order follows month, day, year, hour, minute, and each part has at least 2 digits.
|
Matches |
01/15/07 1745 | 011507 1745 | 01/15/2007 17:45 | 0115071745
|
Non-Matches |
13/15/07 1745 | 013207 1745 | 01/15/2007 25:45 | 0115071762
|
Author |
Rating:
Nathan Wheeler
|
Displaying page
of
pages;
Items to