Visibility condition based on today's date

still working on my mountain guides site… i’d like to automatically show activities based on today’s date. For example, between december and april, i want to show winter activities repeater on my homepage. And between may and october, i want to show summer activities.
So, i’ve built to similar repeaters on the homepage, one for summer activities and one for winter activities.
Now i’d like to display only one, depending on which day we are when visiting the site.

And i don’t understand how to do this… can someone help me with that ? @StrangeTech @Araminta @Lijn-B @yankiara any idea ?

@pomilo There are several different ways to do this - firstly, just to confirm, are you basing it on the day of the week or the day of the month?

@StrangeTech i don’t care about the day, i care about the date (and not of the year, i need it to work each year). For example if we are december 1st i want winter activities to display. If we are june 12th, i want to show summer activities
Is it clearer ?

OK, so this is fairly straightforward.

Add the following code either in a snippet or in your functions:
Screenshot 2024-04-08 at 14.42.23

Just add the following visibility conditions to your repeaters:

June to December:
Screenshot 2024-04-08 at 14.31.31

December to June:
Screenshot 2024-04-08 at 14.41.57