Answers for "javascript next month from date"

0

get next month js

let Month = 11 // according to Date's 0-11 month count
const d = new Date();
// can't make this inline bcos of .setMonth 's return value
d.setMonth(Month + 1)
Month = d.getMonth();
Posted by: Guest on July-19-2021
0

javascript next month from date

var d = new Date('2018-03-31');

d.setMonth(d.getMonth() + 1, 1);

dt = new Date(d);
document.getElementById("demo").innerHTML = dt;
Posted by: Guest on February-28-2022

Code answers related to "javascript next month from date"

Code answers related to "Javascript"

Browse Popular Code Answers by Language