how to set the date to seven days ago javascript code example
Example: javascript date - 7 days
var date = new Date("08-02-2020");
date.setDate(date.getDate() + 7);
console.log(date);
var date = new Date("08-02-2020");
date.setDate(date.getDate() + 7);
console.log(date);