datepicker + timepicker: disable slider on specific date

datepicker + timepicker: disable slider on specific date

I'm using the jQuery datetimepicker from this link. I hope i can ask a question here since it uses the jQuery UI for the datepicker.

I'm using the datepicker with slider for hour and month enabled.

How can I disable and hide the minute slider, when the user selects a date that is more than X days away from today?

Example:

  • Max range for hour / minute usage: 1 month
  • user selects 01/05/2014 - hour / minute still enabled / shown, user can select both
  • user selects 01/01/2014 - minute should be disabled / hide the moment he selects this date.


Here is a fiddle of what i tried: http://jsfiddle.net/LVsB2/

It seems 'option' don't recognize 'showMinute'. Can i somehow achieve my goal?