12 hr format in TimePicker

I'm trying to show the time picker in 12 hrs format instead of 24 hrs. I have tried the code below but still getting the same output:

TimePicker::make('endTime')
->label('End Time')
->withoutSeconds()
->required()
->format('h:i A')
image_6.png
Was this page helpful?