@NathanCruzAug 12, 2022 — #You could actually add that method to the prototype yourself: Date.prototype.addDays = function(days) { var date = new Date(this.valueOf()); date.setDate(date.getDate() + days); return date; }
var date = new Date();
console.log(date.addDays(3));
reply?
×
Success!
Help @AustinDavis spread the word by sharing this article on Twitter...