![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/11/2008, 23:49
|
![Avatar de bandolera_triste](http://static.forosdelweb.com/customavatars/avatar204470_1.gif) | | | Fecha de Ingreso: noviembre-2007
Mensajes: 136
Antigüedad: 17 años, 2 meses Puntos: 0 | |
Respuesta: cambiar el formato de una fecha obtenida de n script fecha1="2008/7/7";
list( $year, $month, $day ) = split( '[/.-]', $fecha1 );
if($day<10)
{
$day="0".$day;
}
if($month<10)
{
$month="0".$month;
}
$fecha1=$year.$month.$day; |