3 Replies Latest reply on Jun 20, 2007 1:39 PM by 807605

    compare two dates with javascript

    807605
      Hello All

      I have two date's in diffrent formate.

      Formate of 1st date is : dd/MMM/yyyy (i.e 01/Jul2007)
      Formate of 2nd date is : dd/mm/yyyy (i.e 01/06/2007)

      now how i would compare these two dates with javascript.and get the result say
      0=equal
      1=greater
      -1=smaller

      thanx in advance