Click here to Skip to main content
15,913,055 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,


I have to validate time as for e.g 14:60 it should give error message that minutes should not be greater than 59 .

thanking you
mohd wasif
Posted

 
Share this answer
 
Comments
Wonde Tadesse 26-May-11 20:27pm    
5+
Beside thatraja link, if you are comfortable working with jQuery, then jQuery UI Date + Time pikcer[^] quite good.

Note: Benefit of this,
1. You shouldn't have to validate the time input. jQuery will take care of it.
2. It's has may options.Like setting default time, getting current time,...
 
Share this answer
 
If you are using AJAX you can use MaskedEdit[^]
 
Share this answer
 
hi,


use regular expression validator for your control ang give validation expression as


ValidationExpression="^([1-9]|1[0-2]|0[1-9]){1}(:[0-5][0-9]){1}$"



will help you
 
Share this answer
 
Comments
Mohd Wasif 26-May-11 8:26am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900