Click here to Skip to main content
15,921,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I am new to javascript. I want to compare todays date with another date. How to do that???
please help me......
Posted
Comments
Ankur\m/ 28-May-11 6:31am    
What do you mean by compare? Do you need number of days between the dates or something else?

this will help you
plese check

http://javascript.about.com/library/bltut19.htm[^]
 
Share this answer
 
There is a Date Object in JavaScript that can be used to work with dates - JavaScript Date Object[^]

I also suggest you to do a search on Google before you ask queries here. For example see here - Google search - compare two dates Javascript[^]

See the link. There are so many discussion about the subject.

Hope that helps! :thumbsup:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900