tags:

views:

295

answers:

3

is there a possibility to calculate the count of years(considering leapyears also),month between two different dates in the javscript?

A: 

Have a look at the JavaScript Date object.

Skilldrick
A: 

You will find a complete javascript function here with validation.

Best wishes,
Fabian

halfdan
hi fabian ,thats was useful piece ,but it doesn't helps me in getting month.
subash
hi i found this to be useful for getting monthshttp://wordsanddeeds.org/blog/2007/04/javascript-get-number-of-months-between-two-dates-34
subash
A: 

This might be a helpful source:

http://www.merlyn.demon.co.uk/js-date1.htm#DYMD

Petteri Hietavirta