Hi,
Are there any documentation available for jqx.date and jqx.timeSpan?
I try to get the minutes between the appointment “from” and “to” time on ‘appointmentChange’ event.
Here is the code how I have tried.
var from = new $.jqx.date($(‘#scheduler’).jqxScheduler(‘getAppointmentProperty’, appointment.id, ‘from’));
var to = new $.jqx.date($(‘#scheduler’).jqxScheduler(‘getAppointmentProperty’, appointment.id, ‘to’));
var timediff = new $.jqx.timeSpan(to – from);
alert(timediff.totalMinutes);
Could tell me what is the correct way to use the jqx.timeSpan class, please?
Thanks
Adam