Add a number of months to a date in JavaScript
Find out how to add months to a date in JavaScript. To add a number of months to a date, first get the month using getMonth() method and add a number of months.
var date = new Date(); console.log(date.getMonth()+1);