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


Solution 1:[1]

Change the format in to

format: 'HH:00'

Solution 2:[2]

It should be timeFormat: 'hh:00:00'

Solution 3:[3]

I have did it using the below given way,

$('#timepicker').datetimepicker({
    timeFormat: 'HH:00'
});

Just add timeFormat and set the value.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Balan
Solution 2 Hari Prasad Ranganathan
Solution 3 Rakesh Jesadiya