I have time values as follows start time: 09:00:00, endTime like: 10:00:00; here a date value is not required. therefore, these values should calculate the difference and convert to hours, minutes, seconds.
I tried:
var test = new Date().getTime(startTime); var test1 = new Date().getTime(endTime); var total = test1 - test;
For a while I get NaN and 1111111 some digital format.
How to convert to HH: MM: SS or any other way to find the time difference.
source share