Time format validation in Java Script



Hi Every body


I have a text item called out_time where the user will give the edning time(HH:MM format). The user is allowed to enter the value in time fromat on a 24 hours clock. So the user can enter a value from 00:01 to 23:59. I attached a range validator for checking the range. but i don't know how to give the regular expression validator to check the fromat of the value enterd. The format should be one or two digits (for hour) optionally followed by a semi colon and one or two digits (for minuits). If minuits were specified then the hour and min should be separated by semi colon only.

Can any body help me to solve my problem

Posted On: Wednesday 7th of November 2012 10:44:41 AM Total Views:  276
View Complete with Replies

RELATED TOPICS OF HTML PROGRAMMING LANGUAGE