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