Question: how to calculate time difference using moment js?
Answer: var start=moment(1541243900000); var end=moment(1541243942882); var duration = moment. duration(end. diff(startTime)); var hours = duration.