mugifly / jquery-simple-datetimepicker

Date & time picker for jQuery, It's simple & clean.
http://mugifly.github.com/jquery-simple-datetimepicker
Other
259 stars 181 forks source link

Option to display am/pm #66

Open gcurrie333 opened 11 years ago

gcurrie333 commented 11 years ago

Very simple yet full-featured, looks better than many. The one thing I miss is 12 hour date format (am and pm).

spingary commented 11 years ago

Could really use this feature!

rstacruz commented 10 years ago

I really need this, and I may just make a fork of it if no one has already done so!

rstacruz commented 10 years ago

Implemented in https://github.com/rstacruz/jquery-simple-datetimepicker . Not exactly complete (not all localizations support it), but it's there:

spingary commented 10 years ago

Excellent - will try it soon. Thank you!!

CJX3M commented 10 years ago

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

spingary commented 10 years ago

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

jordanlev commented 10 years ago

+1 for this feature request (it is the only thing keeping me from using this plugin on my sites)

j201 commented 10 years ago

+1, this is a bit of a deal-breaker.

jordanlev commented 10 years ago

@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.

mugifly commented 10 years ago

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.

junelmujar commented 10 years ago

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 });