how to parse a mysql time datatype to 12 hour format in laravel blade code example Example: convert am pm time to 24 hour in php echo date("H:i:s", strtotime("04:25 PM"));