Advertisement

07.06.2005 at 02:40AM PDT, ID: 21481626
[x]
Attachment Details

ASp.NET date validation

Asked by shmz in Miscellaneous Web Development

Tags: date, validation

Hi,
I am using the following to validate dates:


                                  <asp:CompareValidator id="valCompareDate"
                                          ControlToValidate="EndDate"
                                          ControlToCompare="StartDate"
                                          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
[+][-]07.06.2005 at 05:11AM PDT, ID: 14376894

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2005 at 05:42AM PDT, ID: 14377101

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2005 at 07:31AM PDT, ID: 14378294

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2005 at 07:42AM PDT, ID: 14378418

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2005 at 03:25AM PDT, ID: 14385937

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Miscellaneous Web Development
Tags: date, validation
Sign Up Now!
Solution Provided By: scaffmaster
Participating Experts: 4
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32