Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/09/2006, 16:07
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Usa mktime(), asi:

Código PHP:
<?php
    $dias
=7;
    
//saco el timestamp del 28-08-2006
    
$fecha=mktime(0,0,0,8,28,2006);
    
//le sumo 7 dias usando mktime() y muestro con formato usando date()
     
$nuevafecha=date("d-m-Y",mktime(0,0,0,date("m",$fecha),date("d",$fecha)+$dias,date("Y",$fecha)));
    echo 
$nuevafecha;
?>