Headlines or entire blocks upon date range

Hi team,
I would like to show/hide some elements based on selected date range, for the moment it is Headlines but I intend to use it elsewhere, wherever I may use dates as a conditional.
Business case: tourist accommodation across the calendar and seasons.
My example: H2 with subheadline

  • showing from “end of halloween” to “end of Easter” > Promoting Easter breaks.
  • Another promo from Easter to summer low season end… And so on.
    For the moment I am trying to get this without any custom fields, just played around with some
    {{dc:global:date}} formats but I can’t get the “now show this, then show that” desired result.
    Can you please give me a hint?
    Thank you guys!

Hi Ricard,

Thanks for reaching out.
You need to use the Date Query for comparing the dates. I would suggest you go through the following thread which may help you

Thanks

Will use it next week, thanks for the link @tristup

You are most welcome Ricard.

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