Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/11/2007, 13:37
Avatar de hulray
hulray
 
Fecha de Ingreso: septiembre-2006
Mensajes: 630
Antigüedad: 20 años
Puntos: 3
Re: Restar fechas

tengo este codigo que te puede ayudar

Código PHP:
$fech_act=(date ("d/m/Y"));//
 
$f_ni_aa = substr($fech_act,6,4);
 
$f_ni_mm = substr($fech_act,3,2);
 
$f_ni_dd = substr($fech_act,0,2);
 
 
$f_ni_dd= $f_ni_dd - 2; //Resto los 2 Dias

$hoy=$f_ni_aa.$f_ni_mm.$f_ni_dd;