Home Forums Front-end Issues Date format is wrong Reply To: Date format is wrong

  • The display format is only applicable when a user selects a date. If you want the date to format in the loop you will have to set the date like so:

    <?php $date = new DateTime(get_field('fieldname'));
    echo $date->format('n/j/Y'); ?>

    Format the date accordingly: