09-12-2012, 02:16 PM
Hi Jinnah,
Date Regular Expression:
Format: MM/DD/YYYY
MM: (0[1-9]|1[0-2])
DD: (0[1-9]|1[0-9]|2[0-9]|3[0-1])
YYYY: ([0-9][0-9][0-9][1-9]|[1-9]000|[1-9][1-9]00|[1-9][1-9][1-9]0)
* Assuming that Max year is 9999
Time Regular Expression:
Here Max Time: 23:59:59 and Min Time: 00:00:00
Hours: ([0-1][0-9]|2[0-3])
Mins: ([0-5][0-9])
Secs: ([0-5][0-9])
| Choice between two lines
( ) Used to group multiple regular expressions
[-] To specify a range
Try this it may helpful...
I am not sure about the 2nd thing...
Regards,
Sibi C A
Date Regular Expression:
Format: MM/DD/YYYY
MM: (0[1-9]|1[0-2])
DD: (0[1-9]|1[0-9]|2[0-9]|3[0-1])
YYYY: ([0-9][0-9][0-9][1-9]|[1-9]000|[1-9][1-9]00|[1-9][1-9][1-9]0)
* Assuming that Max year is 9999
Time Regular Expression:
Here Max Time: 23:59:59 and Min Time: 00:00:00
Hours: ([0-1][0-9]|2[0-3])
Mins: ([0-5][0-9])
Secs: ([0-5][0-9])
| Choice between two lines
( ) Used to group multiple regular expressions
[-] To specify a range
Try this it may helpful...
I am not sure about the 2nd thing...
Regards,
Sibi C A