Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get hours and minutes selector in jQuery DateTimePicker control

I have downloaded and tried the jQuery DatetimePicker control from http://plugins.jquery.com/datetimepicker/. This is v2.3.7.

And in the download there is an image attached here which shows the selectors on both hours and minutes. But I haven't been able to find anything in the documentation on how to achieve that. Could someone please point out how to achieve this?

 $('#' + subgridid_complete).datetimepicker({
                   format: 'mm/dd/yy H:i',//'d.m.Y H:i',
                   //inline: true
                   mask:true,
               });

This is what I get using the code above. Notice that the Hour and minute are not independently selectable.

enter image description here

Many thanks

enter image description here

like image 832
A.K Avatar asked Dec 06 '22 20:12

A.K


1 Answers

No example on the page shows a freely choosable time. You can use 'step' to specify for example a 15 minute step in the time scroll-bar.

You can also switch to the trentrichardson.com/examples/timepicker (a jquery-ui-addon). Here, the Time can be chosen, like in that example: trentrichardson.com/examples/timepicker

like image 186
A.K Avatar answered Dec 08 '22 10:12

A.K