Good morning. I'm keeping a record. I'm turning date variables to the correct format Oracle But I get error
$fechanacimiento = DateTime::createFromFormat('Y-m-d', $this->request->getPost("CONT_FECNACI"));
echo $fechanacimiento->format('d/m/Y');
$SPM_CONTACTO = new SpmContacto();
$SPM_CONTACTO->CONT_CODIGO = $this->request->getPost("CONT_CODIGO");
$SPM_CONTACTO->CONT_CEDULA = $this->request->getPost("CONT_CEDULA");
$SPM_CONTACTO->CONT_RUCIDE = $this->request->getPost("CONT_RUCIDE");
$SPM_CONTACTO->CONT_NOMBRE = $this->request->getPost("CONT_NOMBRE");
$SPM_CONTACTO->CONT_FECNACI = $fechanacimiento->format('d/m/Y');
$SPM_CONTACTO->CONT_FECINSC = $fechainscripcion->format('d/m/Y');
$SPM_CONTACTO->CONT_TIPOCODIGO = $this->request->getPost("CONT_TIPOCODIGO");
SQLSTATE[HY000]: General error: 1843 OCIStmtExecute: ORA-01843: not a valid month (/tmp/pear/download/PDO_OCI-1.0/oci_statement.c:142)
The result of the "echo" is '26/04/2016'.That I was wrong