Show if today (date)

Hi,

I know its easy, but I can’t think about to show an element on the page (php) if the Date from the dynamic field on the app page is today’s date.

<div dmx-show="project_date==[TODAY]>text here</div>

Add the Date and Time element to the page and then you have variables you can compare with.

thanks @sitestreet. but this adds a date picker on the page?

Not the date picker. Add the Date And Time component…

1 Like

That’s what I said :wink:

2 Likes

Thanks @sitestreet. Yes indeed it’s what you said. Thanks for your help.:+1:

1 Like