To do this with a repeater field it would look something like this, and I will include information from your other topic.
if (have_row('repeater_field_name')) {
$dates = array();
while(have_row('repeater_field_name')) {
the_row();
$date = get_sub_field('date_subfield_name');
if ($date) {
$dates[] = date_i18n('j \d\e\ F \-\ G \h\s', strtotime($date_3));
}
} // end while have rows
if ( $dates) {
echo '<h5>UPCOMING EVENTS</h5><p> ' . implode(' | ', $dates) . '</p>';
}
} // end if have rows