The Regular Expression for Validating Time
For validating time in ASP.Net, the validation expression used is
^([0-1][0-9]|[2][0-3]):([0-5][0-9]):([0-5][0-9])$
This will validate the time in the textbox in the format HH:mm:ss
For Example,
The valid time is 15:30:12.
Sunday, October 21, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment