Hey there, I'm a JavaScript newbie seeking some help!
The date I'm receiving from the server is: 2015-01-16T05:55:32.000Z
I want to compare this with the current date and display something like:
1 sec ago
2 min ago
2 hours ago
2 weeks ago
2 days ago
2 months ago
2 years ago
I'm looking to achieve this using JavaScript and AngularJS.
If anyone can assist me with this, I would greatly appreciate it. Thank you in advance.