javascript set date for 2 months ago code example
Example 1: javascript date 3 months ago
var d = new Date();
d.setMonth(d.getMonth() - 3);
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