how to get 2 days back date in 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);