momentjs calculate difference dates code example
Example: calculate time difference in hrs moment
var duration = moment.duration(end.diff(startTime));
var hours = duration.asHours();
var duration = moment.duration(end.diff(startTime));
var hours = duration.asHours();