An AngularJS filter for displaying time in facebook format: "6 minutes ago", "2 days ago", "1 week ago"
Download source - Demo page
01/03/2015 is time ago
<html ng-app="app"> <head> ...template, angular stuff, etc... <!-- include the filter --> <script src="timesince.filter.js"></script> .... </head> <body> <div ng-controller="main"> ... <span ng-bind="date | timesince"> long long time ago</span> ... </div> </body> </html>