Новая дата () в JavaScript через 3 дня
var dt = new Date();
dt.setDate(dt.getDate() + 3);
Thoughtful Tuatara
var dt = new Date();
dt.setDate(dt.getDate() + 3);
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(5));