![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/07/2009, 09:22
|
![Avatar de gjx2](http://static.forosdelweb.com/customavatars/avatar253651_4.gif) | | | Fecha de Ingreso: agosto-2008 Ubicación: R.D
Mensajes: 1.153
Antigüedad: 16 años, 5 meses Puntos: 139 | |
Respuesta: Mostrar Variable que tiene fecha en un formato mm/dd/yyy Código PHP: $fecha = '2009-07-10';
$f = explode("-",$fecha);
echo date("m/d/y", mktime(0, 0, 0, $f[2], $f[1], $f[0]));
http://www.php.net/manual/es/function.mktime.php |