Home Forums Front-end Issues Manipulating datepicker data Reply To: Manipulating datepicker data

  • I followed istructions to manipulate the results here
    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.