convert 24 hour format to 12 hour php laravel code example Example: convert time to 24 hour format laravel echo date("H:i", strtotime("04:25 PM"));