Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/06/2009, 23:23
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: Cambiar formato de fecha "dd-mm-aaaa" a "aaaa-mm-dd" (Modificar la cadena)

Código PHP:
$fechaExplode explode("-"$_POST["fecha"]);
$fechaParaInsertar date("Y-m-d"mktime(0,0,0,$fechaExplode[1], $fechaExplode[0], $fechaExplode[2]));

echo 
$fechaParaInsertar
Me dejas saber