Forum Academy Marketplace Showcase Pricing Features

How to format date to show when a chat was sent

Hi guys,

I’m trying to show the times when chats/messages were last sent… currently I’m displaying the date/time they were sent, but I’d like to format them to instead say for example:

-15m ago
-2hr ago
-3d ago

Does anyone know how to do this?


Thanks!

Hi @talbotnar.

This plugin might work for you:

New Plugin: Relative Time with Moment.js

4 Likes

Thank you so much!