2
I am making a code in PHP that format the time that the site searches in the database. It is very simple. I wonder if there is a way to reduce it. Follow the code below:
$tempo = new DateTime($abre);
$abre = $tempo -> format('H:i');
$tempo = new DateTime($fecha);
$fecha = $tempo -> format('H:i');
Thank you very much!!!
– WillBill