Home › Forums › Front-end Issues › Manipulating datepicker data › Reply To: Manipulating datepicker data
I followed istructions to manipulate the results here
http://www.advancedcustomfields.com/resources/field-types/date-picker/
but I didn’t yet understand how to change the language.
here my code:
<?php $date = get_field('name-field');
$y = substr($date, 0, 4);
$m = substr($date, 4, 2);
$d = substr($date, 6, 2);
$time = strtotime("{$d}-{$m}-{$y}");?>
<?php echo date('l D M Y', $time); ?>
It work but I need it in other language and in forums I didn’t find the relative solution.
Help, please.
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.