Open gcurrie333 opened 11 years ago
Could really use this feature!
I really need this, and I may just make a fork of it if no one has already done so!
Implemented in https://github.com/rstacruz/jquery-simple-datetimepicker . Not exactly complete (not all localizations support it), but it's there:
hh
in the locale format sigifies a 24-hour hour (0..23) as usual.ii
to the locale format for a 12-hour hour (1..12).p
to the locale format for "am" or "pm", and P
for "AM" and "PM".locale.timeFormat
, which denotes what time format will be shown in the time picker.en
locale to use the 12 hour format.Excellent - will try it soon. Thank you!!
Was this option deleted, as I set ii and p on the date format using the commited file by rstacruz and i'm still seeing ii:23 p
Maybe I'm doing something wrong but I don't see any changes to the code except for a comment: https://github.com/rstacruz/jquery-simple-datetimepicker/commit/c1cd38831a312965a2e7740019d01db18dd9577e
+1 for this feature request (it is the only thing keeping me from using this plugin on my sites)
+1, this is a bit of a deal-breaker.
@j201 , I have since discovered https://github.com/jonthornton/jquery-datepair , which I am using and it works great for me. Not an exact match to this widget, but might be worth looking into.
Thanks everyone :) I will implement it in soon into this version or next.
I also, can't seem to have been implemented option into commit of rstacruz@c1cd388. So, I will implement by original.
This feature already exists in the current build. Poking through the code, I ran into amPmInTimeList option. By setting it to true, you get the 12 hour format or am/pm in the time list. Clicking a particular data & time returns a result in 24 hr format.
Initialization: $(element).appendDtpicker({ amPmInTimeList : true });
Very simple yet full-featured, looks better than many. The one thing I miss is 12 hour date format (am and pm).