Home › Forums › Front-end Issues › ACF Date Picker (date output) › Reply To: ACF Date Picker (date output)
Hi,
when you’re editing your custom date field, you can see “Display format” on the bottom. This will format the display of the date.
http://www.advancedcustomfields.com/resources/field-types/date-picker/
If you’re setting the format in wp backend, use JS date format, but you can also format the date later in PHP – use the code from example
$date = DateTime::createFromFormat('Ymd', get_field('date_picker'));
echo $date->format('d-m-Y');
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.