This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Date" Watch "Date" New topic


visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122

How to compare two dates to check whether the entered date is not greater than the current date using javascript?
Thanx in advance,
Visu N
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Basic idea:

var Date1 = new Date("1/13/2005");
var Date2 = new Date("1/13/2006")'
alert(Date2 > Date1);

I agree. Here's the link:
subject: Date
It's not a secret anymore!