#TimePicker field not allow to set 24 hrs format.
9 messages · Page 1 of 1 (latest)
Can you not just pass ->seconds(false) to make it hour format?
TimePicker::make('picker')->displayFormat('H:i')
->seconds(false),
Probably also saver to use native(false)
its the native browser time input
if you dont want the native browser one you can use the 24 hour js one with ->native(false)
How did you get the 12 hrs. format by default? I am getting 24 hrs. format and am trying to set 12 hrs. format but it does not seem to work.
I am using the below code... Any help would be much appreciated.
TimePicker::make('endTime')
->label('End Time')
->withoutSeconds()
->required()
->format('h:i A')
The last answer from Dan explained it. Did you read it?