onTimeChange

fires when the user changes time in the selector

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

Parameters

dateDatethe selected date

Example

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

Back to top