How do I do a Date comparison in Javascript?

Posted by Lulu Ket on Stack Overflow See other posts from Stack Overflow or by Lulu Ket
Published on 2008-12-03T19:43:31Z Indexed on 2010/05/27 12:41 UTC
Read the original article Hit count: 180

Filed under:
|

I would like to compare two dates in javascript. I have been doing some research, but all I can find is how to return the current date. I want to compare 2 separate dates, not related to today. How do I do that.

var startDate = Date(document.form1.Textbox2);

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about datetime