I am trying to validate a date entered into a text box. There is an input mask on the textbox which forces input of xx/xx/xxxx. I am trying to use a regular expression valid
Kettenbach had a problem. His co-worker suggested using regexs. Kettenbach then had two problems.
As others have said, use DateTime.TryParse or DateTime.TryParseExact on a custom validator and save yourself the nightmare that is regex :)
DateTime.TryParse
DateTime.TryParseExact