Can I please have a regular expression in .NET, which will allow only 24 hr time format in the textbox.
Thanks.
Best Regards,
MS
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Regular Expressions: Time hh:mm validation 24 hours format:
If you need seconds too:
Edit:
To prevent trailing AM/PM, partial match can’t be allowed or you have to put the expression between ^ and $.