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 $ npm install ngx-pretty-date --save
import { NgxPrettyDateModule } from 'ngx-pretty-date'; @NgModule({ declarations: [ ... ], imports: [ ... NgxPrettyDateModule ], bootstrap: [...] }) export class AppModule { }
<span> {{dateObj | prettyDate}} </span>
Examples
Input | Output |
---|---|
Current time | just now |
Till 60 seconds | 1 minute ago |
2 to 59 minutes | X minutes ago |
60 minutes | 1 hour ago |
2 to 23 hours | X hours ago |
24 hours | Yesterday |
2 to 6 days | X days ago |
7 days | 1 week ago |
8 to 30 days | X weeks ago |
30 days to 365 days | X months ago |
more than 365 days | more than a year ago |
Date string 2019-12-24T06:18:44 | 5 weeks ago |
Text String | Invalid 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.