angular2-persian-date

Persian Date pipes for Angular2

Stats

StarsIssuesVersionUpdatedCreatedSize
angular2-persian-date
510.0.143 years ago4 years agoMinified + gzip package size for angular2-persian-date in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.