hour difference moment 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();