angular material datepicker yyyy-mm-dd code example
Example: mat-datepicker format dd-mmm-yyyy
<input [matDatepicker]="basicDatepicker">
<mat-datepicker-toggle [for]="basicDatepicker"></mat-datepicker-toggle>
<mat-datepicker #basicDatepicker></mat-datepicker>