-1
I have a Datepicker in my form that entering the date manually, the component is waiting for a date to be in American format and ends up with error.
Selecting the date by the component itself, works normally.
Following component code in HTML, I’m using Angular (7.2.3):
<mat-form-field appearance="outline" fxFlex="20">
<mat-label>Data inicial</mat-label>
<input matInput [matDatepicker]="pickerInicial" [(ngModel)]="startDate">
<mat-datepicker-toggle matSuffix [for]="pickerInicial">
<mat-icon matDatepickerToggleIcon>keyboard_arrow_down</mat-icon>
</mat-datepicker-toggle>
<mat-datepicker #pickerInicial></mat-datepicker>
</mat-form-field>