Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/05/2008, 12:09
jiten
 
Fecha de Ingreso: febrero-2008
Mensajes: 409
Antigüedad: 16 años, 2 meses
Puntos: 2
Pregunta Problema con fechas... parece facil ?

TENGO AQUI ESTE CODIGO QUE FUNCIONA BIEN, IMPRIME TODAS LAS FECHAS Y EN EL FORMATO QUE DESEO, PERO... SIEMPRE EMPIEZA CON LA FECHA DE HOY "$STARTDATE=MKTIME();" ... QUE PASARIA SI YO QUIERO EMPEZAR CON UNA FECHA PRE-ESTABLECIDA ? DIGAMOS UNA VARIABLE ? Gracias por sus respuestas ....... !

************************************************** *************


$startdate = mktime();
$enddate = strtotime("+10 years", $startdate);

for($i=$startdate; $i<=$enddate; $i=strtotime("+1day",$i))
{
$linea=date("Y-m-d", $i);
echo ($linea);
}