$foo []= time();$foo []= '12-34-2007';$foo []= strtotime('-1 month');$old = 0;foreach ($foo as $one){ if (is_string($one)) $one = strtotime($one); if ($one > $old) $old = $one;}echo date('r', $old);