You can create an instance of the class DateTime
by passing it your date in the original format you have and then call the function format
to give it the output format you want. Here is the example:
//Fecha en el formato original
$fecha = 'Wed Sep 12 2018 14:47:35 GMT-0500';
//Instancia de DateTime con la fecha original
$date = new DateTime($fecha);
//Muestro el texto con la fecha en el formato esperado
echo $date->format('Y-m-d H:i:s');
Or you can do it in this other way
//Fecha original
$fecha = 'Wed Sep 12 2018 14:47:35 GMT-0500';
//Establezco la zona horaria a Colombia para que me devuelva bien la hora
date_default_timezone_set('America/Bogota');
//Muestro la feha en el formato indicado
echo date('H:i:s', strtotime($fecha));
I hope it has helped you