Hello in my angular material application, I am using mat-datepicker with a moment date adapter. I need keep selected date value as ISO string (2020-08-14T00:00:00.000Z), but I can't simply bind a property to datepicker with ngModel ([(ngModel)]="selectedDate"), because when I use this, datepicker fill selectedDate with moment object, after the date was selected. For ISO string I must use [ngModel]="selectedDate" (dateChange)="selectedDate = $event.value.toISOString()" on every mat-datepicker. Is there any way to set this globally so that the datepicker returns automatically an ISO string and I can use simply [(ngModel)]?
Thanks for your help.