![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/05/2008, 12:09
|
| | Fecha de Ingreso: febrero-2008
Mensajes: 409
Antigüedad: 17 años Puntos: 2 | |
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);
} |