View DatePickerJalali in action at Stackblitz Demo
- Angular
^17.0.0
- Server-side Rendering
- Modern browsers including the following specific versions
$ npm install ng-zorro-antd
$ npm install ngx-antd-jalali jalali-moment
If you need to present another calendar like Jalali or Hijri, you can provide a custom NzDateAdapter which implements required methods to deal with native date object.
import { NzDateAdapter } from 'ngx-antd-jalali/core';
export class CustomDateAdapter extends NzDateAdapter<any> {
// implementation of abstract methods
}
@NgModule({
providers: [{ provide: NzDateAdapter, useClass: CustomDateAdapter }],
})
export class AppModule {}