Neues Datum () in JavaScript 3 Tagen in 3 Tagen
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));