How can I add days to a Date in js, does it have a built in function like some libraries/other languages do in the style of .addDays()?
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));
Help @AustinDavis spread the word by sharing this article on Twitter...