Hi,
I need to validate HH:MM time validation in a text box. for every key up event i need to for 0-2 for first text, 0-3 for secnd text, ":" for third text , 0-5 for fourth text, 0-9 for fifth text.
Please help me. its Urgent. I tried with some validate but its not working out.
Thanks in advance.
Loading
Jean PaulPosted Oct 25, 2011, 7:50 AM
I believe the right approach is to create regular expression or find one for HH:MM format.
If you cannot succeed then use the following code which creates a datetime using the hour and minute specified.
I have tested it with various combinations:
Regards,
Jean Paul