wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Date" Watch "Date" New topic
Author

Date

visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122
Hai,

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
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Basic idea:

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

Eric
 
Don't get me started about those stupid light bulbs.
 
subject: Date
 
Similar Threads
How can I get sysdate in java?
Head First Design Patterns Release Date
WA #1.....word association
Another format check :P
about dataBase books