get next month js

Solutions on MaxInterview for get next month js by the best coders in the world

showing results for - "get next month js"
Adrian
23 Aug 2018
1let Month = 11 // according to Date's 0-11 month count
2const d = new Date();
3// can't make this inline bcos of .setMonth 's return value
4d.setMonth(Month + 1)
5Month = d.getMonth();