Answers for "subtract 1 month from date javascript"

3

minus month javascript date

var d = new Date("January 14, 2012");
console.log(d.toLocaleDateString());
d.setMonth(d.getMonth() - 3);
console.log(d.toLocaleDateString());
Posted by: Guest on March-13-2020

Code answers related to "subtract 1 month from date javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language