aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Comparision of date using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Comparision of date using javascript" Watch "Comparision of date using javascript" New topic

Comparision of date using javascript

Sapan Shah

Joined: Jan 01, 2010
Posts: 25
I want to compare two dates using javascript.
First date is present date and another date is that which i will enter in the text field in the format of dd-mm-yyyy.
There will be only one textfield in which i will enter the date and that value will be compare with present date.

Kindly guide me as i am new to javascript.
Eric Pascarello

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

salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

that solves half the problem.

here is a comparison code i found via google:
now the mystery lies in making this code work for you too

My Website: [] Cool your mind:[] My Sally:[]
I agree. Here's the link:
subject: Comparision of date using javascript