Ravi Boyina Ravi Boyina - 1 month ago 19
jQuery Question

Disable Minute slider from datetimepicker

I'm using jquery Datetimepicker addon to pick date and time, but I need to disable minutes slider from it.

I've tried following code but it won't worked.

$(element).datetimepicker({
dateFormat : 'yy-mm-dd',
timeFormat : 'HH',
showMinute : false,
showOn : 'focus'
});

Answer

Change the format in to

format: 'HH:00'