Ver Mensaje Individual
  #15 (permalink)  
Antiguo 31/10/2011, 11:48
Avatar de jcxnet
jcxnet
 
Fecha de Ingreso: octubre-2005
Ubicación: Perú
Mensajes: 784
Antigüedad: 18 años, 7 meses
Puntos: 56
Respuesta: Determinar Fecha de Comienzo

esta también puede servir:
Código PHP:
$tiempo_inicio '2011-10-31 17:00:00';
$tiempo_fin '2011-10-31 19:00:00';
$tiempo_actual date('Y-m-d H:i:s');

$inicio strtotime($tiempo_inicio);
$fin strtotime($tiempo_fin);
$ahora strtotime($tiempo_actual);

if(
$ahora $inicio 
    echo 
"<br/>El concurso no inicia";
if (
$inicio<=$ahora && $ahora <=$fin)
    echo 
"<br/>El concurso ha iniciado";
if(
$ahora $fin)    
    echo 
"<br/>El concurso termin&oacute;"
__________________
►I'm a devil on the run ♂
Jcxnet.com
*Keep It Simple **