Contact: aviboots(AT)netvision.net.il
43,919 questions
57,323 answers
573 users
function addMonthsToDate(months, date = new Date()) { date.setMonth(date.getMonth() + months); return date; } console.log(addMonthsToDate(6).toDateString()); /* run: "Thu Sep 22 2022" */