DEV Community

Cover image for Calculating elapsed time since one posted
Magpiny
Magpiny

Posted on

Calculating elapsed time since one posted

How do I calculate elapsed time since one posted as the one displayed in this post, twitter, blogs and other social media apps in JavaScript? Thank you

Top comments (1)

Collapse
 
magpiny profile image
Magpiny

Just found out that this can be done using javascript-time-ago library and react-time-ago library among many others... I'll write a blog on this here soon took me a whole 36 hrs to figure out. I feel as dumb as f