I need to format messages on the same day like below:
enter image description here
enter image description here
I store message data in mongodb, the frontend I use reactjs and the backend uses nodejs code according to typescript, I need to process it to get it like the image I provided.
2
Answers
Try this
You can use similar function like this to display the dates,
https://stackoverflow.com/questions/61237564/how-can-i-show-days-by-group-like-whatsapp-chat-screen