I am trying to add 7 days to the entire date object, but it does not work. I keep getting the same date plus the number I am trying to add at the end.
var d = new Date();
for(var i = 0; i < 5; i++) {
var dat = new Date(this.valueOf());
dat.setDate(dat.getDate() + i);
console.log(dat);
}