getDateISO(selectedDate: Date): string {
const reportDate = new Date(selectedDate.getTime());
const date = reportDate.getDate();
const month = reportDate.getMonth();
const year = reportDate.getFullYear();
reportDate.setUTCFullYear(year, month, date);
reportDate.setUTCHours(0, 0, 0, 0);
return reportDate.toISOString();
}ISO date

7 days old
var date = new Date();
date.setDate(date.getDate() - 7)