diff($birth)->y ?: 1; } public static function formatDate($date) { if (!$date) return ''; return date('d/m/Y', strtotime($date)); } }