Home › Forums › Front-end Issues › ACF Date Picker (date output) › Reply To: ACF Date Picker (date output)
And if you have your blog set to french, you can just do these steps in the loop:
// FIRST, SET THE WAY YOU WANT TO FORMAT DATE
// DETAILS HERE - http://php.net/manual/en/function.date.php
$dateformatstring = "l d F, Y";
// THEN, CONVERT THE FIELD FROM ACF TO UNIX TIMESTAMP
$unixtimestamp = strtotime(get_field('data_picker'));
// NOW ECHO THE FRENCH DATE USING A WORDPRESS FUNCTION
echo date_i18n($dateformatstring, $unixtimestamp);
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.