Repeating group, group messages in days and display day?

Hi,

I’m trying to figure out how to display messages grouped by date, like showing “Wednesday, July 26” as a header and listing only the messages from that day underneath. How can I achieve this?

I assume it involves using multiple repeating groups and filtering messages by date. While I know how to build a chat function, I’m unsure how to structure it to group messages by day, similar to the layout shown in the picture below.

I’d really appreciate any guidance. :pray: