Home › Forums › General Issues › datepicker return today's day if field empty › Reply To: datepicker return today's day if field empty
hi John. the problem, i’ve learned, is that ACF returns the current date if using strtotime and date_i18n. i’ve tested running a plain vanilla event_date_end and there’s nothing there, but as also reported here, this isn’t always the case!
if i use your IF statement, is the rest of it basically correct?
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.