Grouping list items by date

Hi there,

I have a database collection that enables users to post photos, and I use a list component to display these photos.

What I am trying to do is group the entries by day, in one single list. So that I can get:

-the date
-all the posts from that day

-the day before
-all the posts from that day

I’ve read about creating a separate collection called ‘dates’ that is linked to posts, but am not managing to get dates automatically assigned to each post as it gets created, so it’s not working

Can anyone can guide me in the right direction?

Many thanks!

Hello @liliste, welcome to the community :slight_smile:

Are you looking to achieve something similar to the below?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.