Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^(((19|2\d)\d{2}\/(((0?[13578]|1[02])\/31)|((0?[1,3-9]|1[0-2])\/(29|30))))|((((19|2\d)(0[48]|[2468][048]|[13579][26])|(2[048]00)))\/0?2\/29)|((19|2\d)\d{2})\/((0?[1-9])|(1[0-2]))\/(0?[1-9]|1\d|2[0-8]))$
|
Description |
this expression validates a date-time field in yyyy/m/d format. The days are validated for the given month and year. Leap years are validated for all 4 digits years from 1900-2999, and all 2 digits years except 00
|
Matches |
2008/2/29 | 2010/12/31 | 2400/02/29
|
Non-Matches |
2009/2/29 | 2010/11/31 | 2100/02/29
|
Author |
Rating:
Not yet rated.
Nguyen Ba Tan
|
Title |
Test
Details
Pattern Title
|
Expression |
^(((1[6-9]|[2-9]\d)\d{2}\/(((0?[13578]|1[02])\/31)|((0?[1,3-9]|1[0-2])\/(29|30))))|((((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))\/0?2\/29)|((1[6-9]|[2-9]\d)\d{2})\/((0?[1-9])|(1[0-2]))\/(0?[1-9]|1\d|2[0-8]))$
|
Description |
this expression validates a date-time field in yyyy/m/d format. The days are validated for the given month and year. Leap years are validated for all 4 digits years from 1600-9999, and all 2 digits years except 00
|
Matches |
2008/2/29 | 2010/12/31 | 2400/02/29
|
Non-Matches |
2009/2/29 | 2010/11/31 | 2100/02/29
|
Author |
Rating:
Not yet rated.
Nguyen Ba Tan
|
Title |
Test
Details
Pattern Title
|
Expression |
^(((1[6-9]|[2-9]\d)\d{2}([-|\/])(((0?[13578]|1[02])([-|\/])31)|((0?[1,3-9]|1[0-2])([-|\/])(29|30))))|((((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))([-|\/])0?2([-|\/])29)|((1[6-9]|[2-9]\d)\d{2})([-|\/])((0?[1-9])|(1[0-2]))([-|\/])(0?[1-9]|1\d|2[0-8]))$
|
Description |
this expression validates a date-time field in yyyy/m/d or yyyy-m-d format. The days are validated for the given month and year. Leap years are validated for all 4 digits years from 1600-9999, and all 2 digits years except 00
|
Matches |
2008/2/29 | 2010/12/31 | 2400-02-29
|
Non-Matches |
2009/2/29 | 2010/11/31 | 2100-02-29
|
Author |
Rating:
Nguyen Ba Tan
|
Title |
Test
Details
Pattern Title
|
Expression |
^(((1[6-9]|[2-9]\d)\d{2}([-|\/])(((0?[13578]|1[02])([-|\/])31)|((0?[1,3-9]|1[0-2])([-|\/])(29|30))))|((((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))([-|\/])0?2([-|\/])29)|((1[6-9]|[2-9]\d)\d{2})([-|\/])((0?[1-9])|(1[0-2]))([-|\/])(0?[1-9]|1\d|2[0-8]))(\s)((([0]?[1-9]|1[0-2])(:|\.)[0-5][0-9]((:|\.)[0-5][0-9])?(\s)?([aApP][mM]))|(([0]?[0-9]|1[0-9]|2[0-3])(:|\.)[0-5][0-9]((:|\.)[0-5][0-9])?))$
|
Description |
this expression validates a date-time field in yyyy/m/d h:m:s or yyyy-m-d h:m:s format. The days are validated for the given month and year. Leap years are validated for all 4 digits years from 1600-9999, and all 2 digits years except 00.
Matches times seperated by either : or . will match a 24 hour time, or a 12 hour time with AM or PM specified. Allows 0-59 minutes, and 0-59 seconds. Seconds are not required.
|
Matches |
2008/2/29 8:25:59 | 2010/12/31 11:25AM | 2400-02-29 09:30
|
Non-Matches |
2009/2/29 8:25:59 | 2010/11/31 11:25AM | 2100-02-29 09:30
|
Author |
Rating:
Not yet rated.
Nguyen Ba Tan
|
Displaying page
of
pages;
Items to