Answer the question
In order to leave comments, you need to log in
How to find time difference in moment.js?
There are 2 hours:
let endTime = "23:07";
let startTime = "22:07"
moment.js
? var diff = moment("23:07").unix() - moment("22:07").unix();
moment.utc(moment.duration(diff).asMilliseconds()).format("HH:mm:ss.SSS");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question