format('Y-m-d'); $b2 = DateTime::createFromFormat('d/m/Y', $b['fecha']); $b2 = $b2->format('Y-m-d'); return strtotime($a2) - strtotime($b2); } } ?>