Adicione um mês até o momento JavaScript
var newDate = new Date(date.setMonth(date.getMonth()+8));
Lucky Lemur
var newDate = new Date(date.setMonth(date.getMonth()+8));
var myCurrentDate=new Date();
var myFutureDate=new Date(myCurrentDate);
myFutureDate.setDate(myFutureDate.getDate()+ 8);//myFutureDate is now 8 days in the future
var newDate = new Date(date.setMonth(date.getMonth()+8));
var jan312009 = new Date(2009, 0, 31);
var eightMonthsFromJan312009 = jan312009.setMonth(jan312009.getMonth()+8);
//$uj@y
// d - is a moment() call
addOneMonth: function (d) {
let fm = moment(d).add(1, 'M');
let fmEnd = moment(fm).endOf('month');
return d.date() != fm.date() && fm.isSame(fmEnd.format('YYYY-MM-DD')) ? fm.add(1, 'd') : fm;
};