Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

A simple Angular 2 pipe that convert Date to Persian date string

License

Notifications You must be signed in to change notification settings

YalitCo/angular2-persian-date

Repository files navigation

angular2-persian-date

A simple Angular 2+ pipe that convert Date to Persian date string

Usage

Import PersianDateModule into your app's modules:

import { PersianDateModule } from 'angular2-persian-date';

@NgModule({
  imports: [
    PersianDateModule,
  ]
})

This makes all the angular2-persian-date pipes available for use in your app components.

Available pipes

persianDate pipe

@Component({
  selector: 'app',
  template: `
    Last updated: {{myDate | persianDate}}
  `
})

Prints چهارشنبه 30 فروردین 1396