Home › Forums › General Issues › datepicker return today's day if field empty › Reply To: datepicker return today's day if field empty
I’m not exactly sure of the issue, but I do know that any call to a php date related functions with empty values for the date (null, false, empty strings, anything that PHP considers “empty”) result in PHP using the current date time. The only way around this it to make sure that the value is not empty before you apply php date functions to that value.
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.