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