you should have @angular/material, @angular/cdk and moment-jalaali installed to your app
npm i --save ngx-persian-datepicker
import {MatDatepickerModulePersian} from 'ngx-persian-datepicker';
<md-datepicker type="wide" #picker (selectedChanged)="setDateReturn($event);"></md-datepicker>
<mat-form-field>
<input required matInput (mouseup)="dpickerFocus(picker)" [(ngModel)]="today" (focus)="dpickerFocus(picker)" readonly
[matDatepicker]="picker" placeholder="تاریخ">
</mat-form-field>