<asp:RegularExpressionValidator ID="dateValRegex" runat="server" ControlToValidate="TxtDOB" ErrorMessage="Please Enter a valid date in the format (mm/dd/yyyy)" ValidationExpression="^(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[- /.](19|20)\d\d$"></asp:RegularExpressionValidator>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)