Home › Forums › General Issues › Query not running as expected › Reply To: Query not running as expected
It you are going to do date formatting yourself then you should set the return format to a valid PHP date format. I generally use ‘Y-m-d’.
‘Ymd’ is not a valid date format for strtotime() or any of the other PHP function that take date values.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.