JavaScript -Doubt

Results 1 to 2 of 2

Thread: JavaScript -Doubt

  1. #1
    Join Date
    Dec 1969

    Default JavaScript -Doubt

    How can i compare 2 dates in javascript...<BR>i have the format say 01-Jan-2001 <BR>i need to compare b/w 2 dates and know which date is bigger...

  2. #2
    Join Date
    Dec 1969

    Default RE: JavaScript -Doubt

    You cannot DIRECTLY compare dates in JavaScript. Create two date objects, and then convert these to their milisecond representation.<BR><BR>You can then see which is larger.<BR><BR>Craig.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts