I am stuck a bit, help friends/dparsons
Hi
I have the regular expression to validate date (mm/dd/yyyy) with <asp:regularexpressionvalidator> but its not validating leap years, can anyone help with the regex, the code that I am using is as below:
<asp:regularexpressionvalidator id="regExpRequestDate" runat="server" ControlToValidate="txtRequestDate" ErrorMessage="(mm/dd/yyyy format)"
ValidationExpression="^[0-2]?[1-9](/|-)[0-3]?[0-9](/|-)[1-2][0-9][0-9][0-9]$"></asp:regularexpressionvalidator>
Regards
Mike
__________________
Regards
Mike
|