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?


Hi @Nocodify.

This plugin might work for you:

New Plugin: Relative Time with Moment.js


Thank you so much!