Multiple row Date selection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shivasusan
    New Member
    • Oct 2008
    • 67

    Multiple row Date selection

    Hi!

    Pls help me.... i don't know to do.


    first row : 22.2.2009 to 28.2.2009
    second row: 3.3.2009 to 15.3.2009
    third row: 10.3.2009 to 30.3.2009 // here i want to display alert message: yr selection is wrong.(because already u select "3.3.2009 to 15.3.2009") Pls select correct date.

    How?

    Thanks and Regards,
    Susan
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Originally posted by shivasusan
    Hi!

    Pls help me.... i don't know to do.


    first row : 22.2.2009 to 28.2.2009
    second row: 3.3.2009 to 15.3.2009
    third row: 10.3.2009 to 30.3.2009 // here i want to display alert message: yr selection is wrong.(because already u select "3.3.2009 to 15.3.2009") Pls select correct date.

    How?

    Thanks and Regards,
    Susan
    The most obvious solution is to run an if statement - if startDate2 > startDate1 AND startDate2< endDate1 then... etc. Does this make sense?

    Jared

    Comment

    • shivasusan
      New Member
      • Oct 2008
      • 67

      #3
      Hi!

      Thanks for your reply.

      How i can check this in javascript? Using array or row by row to check the start & end date? pls give any diea.

      Regards,
      Susan

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        if you want a javascript answer, you should have asked in the javascript forum, I am not a javascript expert. I'll move your post for you.

        Jared

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          you can use the Date object to compare the dates.

          Comment

          Working...