laravel form in 24 hours format

Solutions on MaxInterview for laravel form in 24 hours format by the best coders in the world

showing results for - "laravel form in 24 hours format"
Jay
14 Nov 2020
1// 24-hour time to 12-hour time 
2$time_in_12_hour_format  = date("g:i a", strtotime("13:30"));
3
4// 12-hour time to 24-hour time 
5$time_in_24_hour_format  = date("H:i", strtotime("1:30 PM"));