function greaterDate($start_date,$end_date){ $start = strtotime($start_date); $end = strtotime($end_date); if ($start > $end) return true; else return false; }