Home › Forums › Add-ons › Repeater Field › Order Repeater Field Rows by Date › Reply To: Order Repeater Field Rows by Date
you need to set Return Format to Ymd because only then you can order dates correct.
and use something like this:
$get_startdate = get_field('my_startdate');
$start_date = (strtotime($get_startdate));
//use $get_startdate to order, and $start_date_pretty to output your date
$start_date_pretty = date_i18n( 'd/m/Y', $start_date );
echo $start_date_pretty;
hope that help you to get what you wish to try
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.