disabledDate(date) {
const currentDate = new Date();
const days7 = new Date(currentDate);
days7.setDate(currentDate.getDate() + 7);
const days7year = new Date(currentDate);
days7year.setFullYear(currentDate.getFullYear() + 1);
return (
(date.getTime() > currentDate.getTime() &&
date.getTime() < days7.getTime()) ||
date.getTime() > days7year.getTime()
);
}