Poor addDays
I picked it up here. It’s a great way to be able to add (or remove) days to a Date object in Javascript. Enjoy (and check out the linked web page for more stuff.)
Code of the Day
Date.prototype.addDays = function (days) {
let date = new Date(this.valueOf());
date.setDate(date.getDate() + days);
return date;
}
let date = new Date();
console.log(date.addDays(7));