Hi,
I am using the following to validate dates:
<asp:CompareValidator id="valCompareDate"
ControlToValidate="EndDate
"
ControlToCompare="StartDat
e"
Operator="GreaterThan"
Type="Date"
Runat="Server">End date must be reater than start date</asp:CompareValidator
>
date forma tis dd/mm/yyyy
But when I enter: startdate: 11/12/2004 and enddate: 23/02/2005 I get error message than end date should be greater....
It only happens when end date's day is twenty something.....
any idea?
thanks
ps: date format is:
ValidationExpression="(0[1
-9]|[12][0
-9]|3[01])
[- /.](0[1-9]|1[012])[- /.](19|20)\d\d"
Start Free Trial