Support

Account

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.