I need to display the start date and end date where the start date is in format dd/mm/yyyy, for example 10/09/2020, and the end date should be yesterday's date, i.e., 09/09/2020. All other dates should be disabled.
What steps should I take to implement this?
<mat-form-field color="accent" appearance="fill">
<mat-label>Start Date</mat-label>
<input matInput [matDatepicker]="picker1" [max]="tomorrow" [formControl]="startDate">
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
<mat-datepicker #picker1></mat-datepicker>
</mat-form-field>
<mat-form-field color="accent" appearance="fill">
<mat-label>End Date</mat-label>
<input matInput [matDatepicker]="picker2" [min]="today" max="tomorrow" [formControl]="endDate">
<mat-datepicker-toggle matSuffix [for]="picker2"></mat-datepicker-toggle>
<mat-datepicker #picker2></mat-datepicker>
</mat-form-field>