javascript get number of month between two dates code example
Example 1: get month in two digit in javascript date
("0" + (this.getMonth() + 1)).slice(-2)
Example 2: javascript after 2 months date find
var newDate = new Date(date.setMonth(date.getMonth()+8));
var jan312009 = new Date(2009, 0, 31);
var eightMonthsFromJan312009 = jan312009.setMonth(jan312009.getMonth()+8);
//@SUJAY