I am making a PHP code that formats the time the site looks for in the database. It's very simple. I wanted to know if you can reduce it. Here is the code:
$tempo = new DateTime($abre); $abre = $tempo -> format('H:i'); $tempo = new DateTime($fecha); $fecha = $tempo -> format('H:i');