Get hours difference between two dates in Moment Js

var duration = moment.duration(end.diff(startTime));
var hours = duration.asHours();

References
https://stackoverflow.com/questions/25150570/get-hours-difference-between-two-dates-in-moment-js

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.