Ver Mensaje Individual
  #8 (permalink)  
Antiguo 14/11/2013, 15:04
Fozzie12
 
Fecha de Ingreso: noviembre-2013
Ubicación: Mexico
Mensajes: 32
Antigüedad: 10 años, 5 meses
Puntos: 0
Respuesta: convertir DATETIME a STRING

Lo en ingresado tal cual me lo has dicho pero, me marca un error:

Código HTML:
Ver original
  1. NULL NULL NULL NULL NULL NULL NULL object(DateTime)#2 (3) { ["date"]=> string(19) "2013-11-12 12:31:59" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
  2. Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 1 to be string, object given' in C:\wamp\www\pruebas\gob.php:161 Stack trace: #0 C:\wamp\www\pruebas\gob.php(161): DateTime->__construct(Object(DateTime)) #1 {main} thrown in C:\wamp\www\pruebas\gob.php on line 161

me sigue dejando la fecha actual..