onTimeChange

fires when the user changes time in the selector

void onTimeChange(Date d){ ... };

Parameters

dDatethe selected date

Example

myCalendar.attachEvent("onTimeChange", function(d){
    // your code here
    var newHours = d.getHours();
    var newMinutes = d.getMinutes();
});

Back to top