In my scheduler, I have, as a part of the definition:
then this runs, I get
<p>Sep 29 2014 12:00 t (20) Smith, John</p>
20 hours is the value I get for a one hour meeting.
21 hours is the value I get for a two hour meeting.
I would have expected 1 and 2 hours, respectively...
How do I properly calculate total hours between two DateTime values in javascript MVVM?
.EventTemplate(
"<
p
>" +
"#= kendo.toString(start, 'MMM dd yyyy hh:mm t') # (#= kendo.toString(new Date(end.getTime()-start.getTime()).getHours()) #) #= title#" +
"</
p
>")
then this runs, I get
<p>Sep 29 2014 12:00 t (20) Smith, John</p>
20 hours is the value I get for a one hour meeting.
21 hours is the value I get for a two hour meeting.
I would have expected 1 and 2 hours, respectively...
How do I properly calculate total hours between two DateTime values in javascript MVVM?