Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/10/2009, 23:29
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 15 años, 8 meses
Puntos: 139
Respuesta: Problema convirtiendo una fecha...

Código php:
Ver original
  1. function FormatDate($fecha){
  2. $f = explode("/",$fecha);
  3. return date("Y-m-d",mktime(0,0,0,$f[1],$f[0],$f[2]));
  4. }
  5.  
  6.  
  7.  
  8. echo FormatDate("27/01/1969");