<mat-form-field>
<input matInput [matDatepicker]="picker1" [value]="task_due_date.value" (dateChange)="change_due_date($event)">
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
<mat-datepicker #picker1></mat-datepicker>
</mat-form-field>
答案 0 :(得分:0)
{提供:MAT_DATE_FORMATS,使用值:MY_NATIVE_DATE_FORMATS}