Skip Navigation

[Resolved] Query filter for field value equal to todays date

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 17 replies, has 2 voices.

Last updated by jamesR-13 3 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#2000817

OK, cool. That does indeed seem to be working.

One more question related to this, how can I display today's date formatted like "March 25, 2021" now?

#2001023

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi James,

I'm assuming you're referring to this line here 3 Approvals for 1616630400 where you want to convert the timestamp to a date value.

You are going to have to create a second shortcode to parse the [today] shortcode into a human readable time. You will need to use the date() function as depicted in this post below.

https://stackoverflow.com/questions/5213528/convert-timestamp-to-readable-date-time-php/5213552

Once you've done this you should then get your timestamp in human readable form.

Please let me know if this helps.
Thanks,
Shane

#2005545

My issue is resolved now. Thank you!