In effetti. Comunque trovo strano che non ci sia una funzione !!!!Originariamente inviato da boomboom69
quind così dovrebbe andare?
codice:function test($start, $end) { list($day, $month, $year) = explode("/", $start); $start = $year.$month.$day; list($day, $month, $year) = explode("/", $end); $end = $year.$month.$day; return $end > $start ? true : false; } $data_start = "11/02/2003"; $data_end = "10/02/2004"; echo $data_end.(test($data_start, $data_end) ? " > " : " <= ").$data_start;