Skip to content

mohsen77sk/angular-material-moment-jalali-hijri-adapter

Repository files navigation

AngularMaterialMomentJalaliHijriAdapter

What is this?

This library provides a custom DateAdapter for the Angular Material Datepicker component using the moment library.

  • Includes all locales provided by moment.
  • Supported Jalali calendar for fa-IR locale.
  • Supported Hijri calendar for ar-SA locale.

Demo

https://mohsen77sk.github.io/angular-material-moment-jalali-hijri-adapter/

Install

npm install moment moment-hijri moment-jalaali

Default locale

When MAT_DATE_LOCALE tokens are not provided, en-US locale is used by default.

Releases

No releases published

Packages

No packages published