javascript set days before code example
Example 1: javascript current date add 30 days
var future = new Date();
future.setDate(future.getDate() + 30);
Example 2: 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