Answers for "how to substract to a date 3 months angularjs"

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
2

javascript date 3 months ago

var d = new Date();
d.setMonth(d.getMonth() - 3);
Posted by: Guest on May-04-2020

Code answers related to "how to substract to a date 3 months angularjs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language