Question: how to calculate month difference in javascript?
Answer: getMonth()) - (past_date. getFullYear()*12 + past_date. getMonth()); This will get you the difference of months between the two dates, ignoring the days.