jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

There is no mode to display time in 24h format? #278

Closed ferminako closed 11 years ago

ferminako commented 11 years ago

Hi I'm using your date box to display the time, but there is not timeFormat option to display the time in 24h format instead of 12h AM/PM into input controllers, because in the modal popup it is already show in 24h format. I've found timeOutput and I've tried: <input name="mytime" id="mytime" type="time" data-role="datebox" placeholder="Time" data-options='{"mode": "timeflipbox", "minuteStep":15 , "timeOutput"=24}'>

but it hasn't worked.

any solution? Thx.

jtsage commented 11 years ago
overrideTimeFormat: 24

and

overrideTimeOutput: "%k:%M"
ferminako commented 11 years ago

I'm sorry , I didn't find those options. Thanks , your work is so useful.

shahabkamali commented 7 years ago

I used something like this:

<input type="time" data-clear-btn="false" name="time" id="time" value="" data-role="datebox" data-option='{ "overrideTimeFormat": 24, "overrideTimeOutput": "%k:%M" }' /></div>

but it does not work :|