Set jalali (shamsi, persian, khorshidi) dates for Angular Material DatePicker.
Jalali calendar system borrowed from Jalali Moment js library.
An npm package that contains jalali moment DateAdapter for angular material datepicker.
npm install material-jalali-moment-adapter
Add to your ngModule:
import { MaterialJalaliMomentAdapterModule } from 'material-jalali-moment-adapter';
@NgModule({
...
imports: [ MaterialJalaliMomentAdapterModule, ]
})
export class AppModule { }
That's it. You will have Jalali calendar for your datePickers.