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