# How to display time passed since receving a chat message?

**URL:** <https://forum.heroiclabs.com/t/how-to-display-time-passed-since-receving-a-chat-message/1891>\
**Category:** Game Design\
**Tags:** sdk-unity, chat\
**Created:** [August 18, 2021, 11:25am UTC](https://forum.heroiclabs.com/t/how-to-display-time-passed-since-receving-a-chat-message/1891 "2021-08-18T11:25:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhammad079](https://avatars.discourse-cdn.com/v4/letter/m/bc79bd/32.png) [@Muhammad079](https://forum.heroiclabs.com/u/Muhammad079)\
**Post date:** [August 18, 2021, 11:25am UTC](https://forum.heroiclabs.com/t/how-to-display-time-passed-since-receving-a-chat-message/1891/1 "2021-08-18T11:25:17Z")

</div>

I had Implemented Chat and need to show when did the last message receive. like on each message it should be written – mins ago. Now I dont understand how to implement.

📺 **Media:**

![Screenshot 2021-08-18 162401](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/1X/9372dee33bf7a4c59350bb167780e95a7e404c82.png)

---

<div class="post-metadata">

**Author:** ![zyro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/zyro/32/14_2.png) [@zyro](https://forum.heroiclabs.com/u/zyro)\
**Post date:** [August 18, 2021, 12:38pm UTC](https://forum.heroiclabs.com/t/how-to-display-time-passed-since-receving-a-chat-message/1891/2 "2021-08-18T12:38:11Z")

</div>

@Muhammad079 Each message received contains a “create time”, you can use this to power what you need.

The formatting of this timestamp for display purposes is up to the client. In your case you can compare the message time with current device time to determine how to display what you want. 👍

---

<div class="post-metadata">

**Author:** ![sean](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sean/32/643_2.png) [@sean](https://forum.heroiclabs.com/u/sean)\
**Post date:** [August 18, 2021, 1:45pm UTC](https://forum.heroiclabs.com/t/how-to-display-time-passed-since-receving-a-chat-message/1891/3 "2021-08-18T13:45:54Z")

</div>

Hi @Muhammad079 welcome to the Heroic Labs forums 🥳 I moved your question to the **Game Design** category as it’s about how to use Nakama’s features to build your game. I also summarised your topic with a shorter title which will make it easier for others to contribute.

Thank you for using Nakama and welcome to our community 😀 if you haven’t already read our guides I recommend starting with [Welcome to the Heroic Labs forums - #11](https://forum.heroiclabs.com/t/welcome-to-the-heroic-labs-forums/1885/12)
