Support

Account

Home Forums ACF PRO ACF Datepicker within an ACF Repeater row, dates not $Post unique Reply To: ACF Datepicker within an ACF Repeater row, dates not $Post unique

  • Personally I don’t use the DateTime class, seems like too much work for me, I just use strtotime() which is still a valid function

    $date = get_field('slide_datepicker', false, false);
    $time = strtotime($date);
    echo date('Y-m-d', $time);
    echo date('d | m | Y', $time);