RTO-Websites/dynamic-conditions

Compare with todays date

IrishDesigner opened this issue · 2 comments

I am trying to automate a section and to do so need to compare the date set in an acf custom field with the current date-time (if the event is in the future it will display 'future events' and hide 'past events', otherwise it will display 'past event' and hide 'future events').

Not quite sure how to get the date selector to automatically take todays date/datetime, or is this not currently something the dynamic-conditions can do?

Many thanks in advance for this wonderful plugin,

Michael

Hello @IrishDesigner

i think you could use strtotime as compare type and enter "now" as conditional value.
Should look like this

grafik

That did exactly what I needed thank you!