Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/09/2012, 16:57
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: insertar fecha con zend en oracle

Puedes hacer algo así:
Código PHP:
Ver original
  1. $data = array(
  2.     'ID' => $entry->id,
  3.     'STATE' => $entry->state,        
  4.     'CREATED_DATE' => new Zend_Db_Expr("to_date('$createdDate', 'YYYY-MM-DD')")
  5. );
  6. $table->insert($data);

Saludos.