I am having the time values as follows starttime like : 09:00:00 , endTime like : 10:00:00 ; here no date value is needed. so this values need to calculate difference and convert into hours and minutes,seconds.
I had tried with :
var test = new Date().getTime(startTime);
var test1 = new Date().getTime(endTime);
var total = test1 - test;
Some time am getting NaN
and 1111111
some digit format.
How can I convert into HH:MM:SS, or any other way to find time difference.