C
Cirene
I want to validate whether a user has entered data correctly in a textbox.
The format should be HOUR:MINUTE. They should ALWAYS enter a value, 2
digits always for the minute.
OPTIONAL: Minutes should never go over 60.
These will pass:
45:14 (45 hrs, 14 min)
01:00 (1 hr, no min)
2:45 (2 hr, 45 min)
These will fail:
23 (no minutes)
23:1 (minutes should be 2 digits)
23:122 (too many minutes)
Thanks!!!!
The format should be HOUR:MINUTE. They should ALWAYS enter a value, 2
digits always for the minute.
OPTIONAL: Minutes should never go over 60.
These will pass:
45:14 (45 hrs, 14 min)
01:00 (1 hr, no min)
2:45 (2 hr, 45 min)
These will fail:
23 (no minutes)
23:1 (minutes should be 2 digits)
23:122 (too many minutes)
Thanks!!!!