Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/07/2009, 09:22
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 18 años, 2 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