typescript date add 7 days code example
Example 1: javascript get 7 days from now
var date = new Date();
date.setDate(date.getDate() - 13);
console.log(date);
Example 2: typescript add days to date
addDays(days : number): Date{
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + days);
return futureDate;
}