Can someone help me build a regular expression to validate time?
Valid values would be from 0:00 to 23:59.
When the time is less than 10:00 it should also su
I'd just use DateTime.TryParse().
DateTime time; string timeStr = "23:00" if(DateTime.TryParse(timeStr, out time)) { /* use time or timeStr for your bidding */ }