SyntaxFix
Write A Post
Hire A Developer
Questions
We can use Carbon
Carbon
$time = '09:15 PM'; $s=Carbon::parse($time); echo $military_time =$s->format('G:i');
http://carbon.nesbot.com/docs/