Check documentation for the latest version of dhtmlxSuite onTimeChange DHTMLX Docs

onTimeChange

fires when the user changes time in the selector

void onTimeChange(Date date);
dateDatethe selected date

Example

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

Back to top