Datetimepicker

Datetimepicker

Hi!

I'm using the Datepicker plugin with the [url= http://trentrichardson.com/examples/timepicker/]Timepicker[/url] add-on and got a problem with customizing it the way I want to have it. This is what I want to do: You should only be able to pick the time and date, that is at least 12 hours ahead from the current time. The time scrollbar should only display hours and it should only be adjustable on full hour steps. I use the 24-hour clock.
Here are some examples of what the earliest selectable time should be at a given time:
30th August, 10:15 -> 30th August, 23:00
30th August, 13:24 -> 31st August, 02:00

Here is what I got so far:
  1. $(function(){

          var date;
          date = new Date();

          var hours;
          hours = date.getHours();
          hours = hours + 12;

          $("#termin").datetimepicker({
                showHour: true,
                showMinute: false,
                timeFormat: 'hh:00',
                dateFormat: 'dd.mm.yy, ',
                hourMin: hours,
                minDate: +0,
                hour: hours,
                timeText: 'Uhrzeit',
                hourText: 'Stunde',
                currentText: 'Heute',
                closeText: 'Fertig'
          });
    });






















The Problem is: The selectable hour is restricted for every day, not only the current day. So if the current time was 1st September, 01:00, the selectable hour would be restricted to 13:00 - 24:00 on every day, not only the current day.
I think I somehow need to grip the currently selected date on the datepicker calendar. Is there some sort of function where you can do this? Or if not, what would you suggest I can do to make it work? I'm just starting with jQuery and am still quite unexperienced with it.