Date pipe is Working fine in Html Interpolation but not Working in Mat-DatePicker Input Fields
问题 I want to display a date in dd/MM/YYYY format when a user pick the date using the mat Datepicker but when i use the Datepipe in Datepicker it not shows any Date when we pick <mat-form-field class="box"> <input matInput [matDatepicker]="picker" placeholder="Generate Date" maxlength="10px" [readonly]="isNew1" [ngModel]="quotation?.generateDate | date: 'dd/MM/yy'" (ngModelChange)="quotation.generateDate=$event" [ngModelOptions]="{standalone: true}"> <mat-datepicker-toggle matSuffix [for]="picker