add 7 days to date javascript code example
Example 1: javascript current date add 30 days
var future = new Date();
future.setDate(future.getDate() + 30);
Example 2: new date() in javascript 3 days from now
var dt = new Date();
dt.setDate(dt.getDate() + 3);
Example 3: javascript get 7 days from now
var date = new Date();
date.setDate(date.getDate() - 13);
console.log(date);