If you’ve been having any issues with jQueryUI 1.10, you can now grab timepicker 1.2. This release only squashed a few bugs, but one of them prevented some users from using jQueryUI 1.10. What was fixed?
- $.datepicker.log() no longer exists in jQueryUI 1.10.
- ASP.NET bundling syntax error.
- getDate is null if only sliders are used.
- Added component.json for Bower.
Looking to help out?
I’ve also had several requests for adding a “u” option for timeFormat, representing a unix timestamp. I do see this as useful, but currently date and time are formatted separately, meaning time formatting and time parsing has no interaction with the date portion at all. This option will require a little restructuring, so the brainstorming has begun.
Another, potentially very useful addition is disabling a list of dates and times. I’m not sure the best approach for this, but my thought is an option like “disableRanges”:
$('#mydatetime').datetimepicker({
disableRanges: [
{ start: startDateObja, end: endDateObja },
{ start: startDateObjb, end: endDateObjb }
]
});
The thinking here is a user may want to pass holidays as disabled times for scheduling an appointment. I would like for anyone with thoughts on this to comment, as I’m sure there are other needs from this feature request.


8 Responses
kim hsu
Feb 04, 2013Hi
I got a error on ie 8 when I selected any date,such as message
‘錯誤: ‘length’ 是 null 或不是一個物件’
Could you give me any suggestion,thanks a lot.
trent
Feb 11, 2013I’ve had a little feedback on dealing with disabling dates/ranges. Here are some notes.
David Walsh covered a date-only:
http://davidwalsh.name/jquery-datepicker-disable-days
This uses beforeShowDay option/function to determine whether to show the day:
http://api.jqueryui.com/datepicker/#option-beforeShowDay
This can help most users disable days, but time is still an issue.
To grab the time perhaps using the onSelect (when a date is chosen) event and set options such as hourMin and hourMax.
I do agree with David in his article though that there needs to be an easier approach. So while this may be a round about solution I still persist that perhaps an option for disabledRanges: [] or function(){ return [] } would be ideal.
Bruno Duarte
Mar 08, 2013Please, can you give an example on how to add the TimePicker Jquery control to an ASP.NET page ? Thanks
Anton Schaffer
Mar 14, 2013My client’s requirement is to have an icon to be clicked for start and a seperate icon for end dates.
But, they do not want the input boxes shown.
I can create 2 hidden inputs and place the value in there, but how do I get your plugin to work without showing the current input boxes??
Any help would be greatly appreacited.
Neelesh
Mar 14, 2013Not working disableRanges :(
Kuba
Mar 19, 2013I’m not sure but sliders for time not working on jquery-1.9.1 and jquery-ui-1.10.1. I mean they change time but they are on the begining of the slider all time (the pointer is not moving)…
Geddemet
Apr 03, 2013Hi Trent Richardson,
I think your timepicker has a delay, when you press the “NOW” button, it will hang for a moment just like it’s loading..
it also happens when you
- click the textbox
- select time ( hour or minutes )
I have multiple textbox that needs the timepicker.. filling up them all takes a lot of time because of the delay..
You will experience the delay more when you used IE, I’m using IE8
What could be the problem?
Michael Choi
Apr 05, 2013I have following error after upgrading to 1.2: “SCRIPT438: Object doesn’t support property or method ‘prop’ jquery-ui-timepicker-addon.js, line 845 character 6″
Browser: IE9 and IE10
jQuery: jquery-1.5.1.min.js,jquery-ui-1.8.11.min.js.
Any help would be appreciated.