Convert Dates Into Human-readable Timestamps – ngx-pretty-date

Author: keshavkhatri
Official Page: Go to website
Views Total: 61
License: MIT

Description:

ngx-pretty-date is an Angular module that converts dates & times into Facebook-like human-readable timestamps (e.g. more than a year ago).

Install & Usage:

# NPM
$ npm install ngx-pretty-date --save
import { NgxPrettyDateModule } from 'ngx-pretty-date';
@NgModule({
  declarations: [
    ...
  ],
  imports: [
    ...
    NgxPrettyDateModule
  ],
  bootstrap: [...]
})
export class AppModule { }
<span> {{dateObj | prettyDate}} </span>

You Might Be Interested In:

Add Comment