Skip to main content

Error 'Call to a member function format'

Call to a member function format() on boolean in

$fDevolucion = DateTime::createFromFormat('d-m-Y', $Fechadevolucion);
($prestamos = $objprestamo->addprestamo($fDevolucion->format('d-m-Y'),$cliente,$libro,$observacion)){ <-- ERROR EN ESTA LINEA 
ALEX
  • 1
  • 1
  • 2