Hi all
I have the following validation wrapped around a date txtBox:
<asp:CompareValidator id="CompareValidator2"
runat="server"
Type="Date"
Operator="DataTypeCheck"
ControlToValidate="txtDEC"
SetFocusOnError="True"
ErrorMessage="Invalid Date Joined Format."
Width="2%">
<strong>*</strong>
</asp:CompareValidator>
<asp:RegularExpressionValidator ID="RegExpValDEC"
runat="server"
ErrorMessage="Please enter date in correct format: dd/mm/yyyy."
ValidationExpression="^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26]) ...
Go to the complete details ...