Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/05/2011, 12:38
Avatar de Sotelio
Sotelio
 
Fecha de Ingreso: mayo-2011
Ubicación: Santiago de Chile
Mensajes: 68
Antigüedad: 13 años
Puntos: 21
Respuesta: Comparar fechas y horas

Hola

Prueba con strtotime()
http://php.net/strtotime

Código PHP:
$fecha1 "2010-03-01 02:04:10";
$fecha2 "2010-03-01 02:20:10";


if (
strtotime($fecha1) > strtotime($fecha2)) {
   echo 
"SI";

Suerte
Sotelio