add 7 days to current date javascript 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);