Angular Pretty Date for Facebook Like Time Stamps | ngx-prettydate

AngularJS Pretty Date is Facebook, Twitter-like date conversion in Angular using Angular Pipes.

angular unix timestamp to date pipe, convert timestamp to date javascript, javascript timestamp format, angular time duration pipe, javascript convert timestamp to date timezone

How to Visualize Time Series Data With ╬╝Plot Chart Library

How to make use of it:

Install & Usage:

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


Current timejust now
Till 60 seconds1 minute ago
2 to 59 minutesX minutes ago
60 minutes1 hour ago
2 to 23 hoursX hours ago
24 hoursYesterday
2 to 6 daysX days ago
7 days1 week ago
8 to 30 daysX weeks ago
30 days to 365 daysX months ago
more than 365 daysmore than a year ago
Date string 2019-12-24T06:18:445 weeks ago
Text StringInvalid Date

Convert Dates Into Human-readable Timestamps, Angular Pretty Date Plugin/Github, timestamp to day javascript, convert timestamp to utc javascript, convert unix timestamp to datetime

See Demo And Download

Official Website(keshavkhatri): Click Here

This superior jQuery/javascript plugin is developed by keshavkhatri. For extra Advanced Usages, please go to the official website.

Related Posts


Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…


Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…


How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…


A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…