Ver Mensaje Individual
  #4 (permalink)  
Antiguo 23/11/2010, 06:49
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: Convertir DateTime a String

Código PHP:
$fecha_hoy = new DateTime;
$fecha_inicial= new DateTime();
$fecha_inicial->modify("-120 days");
echo 
$fecha_inicial->format("d/m/Y"); 
__________________
More about me...
~ @rhyudek1
~ Github