Is there a way to exclude Monday from the "mat-datepicker" component? I've tried implementing the following code in my class component:
dateFilter = (_date: any) =>{
let day = _date.getDay();
console.log(day);
return day != 1;
}
Here is how it looks in my template file:
<input [matDatepicker]="picker" [matDatepickerFilter]="dateFilter" />
<mat-datepicker (closed)="ClosePicker($event)" #picker></mat-datepicker>
However, after making these changes, I am unable to view any dates on my calendar. The only month displayed in the months section is "February". How can I resolve this issue? I'm happy to provide more code if necessary.