how to calculate the working hour 24 hours format laravel code example Example: convert time to 24 hour format laravel echo date("H:i", strtotime("04:25 PM"));