JSFiddle - React, Tailwind, and code Playground
JavaScript
var date = new Date();
console.log('Current Date', date);
var currentMonth = date.getMonth();
console.log('Current Month', currentMonth);
var nextMonth = parseInt(currentMonth) + 1
console.log('Next Month', nextMonth);
date.setMonth(nextMonth);
console.log('Next date month ID', date.getMonth())
console.log('Next Month Date', date);