moment time difference in hours code example
Example 1: moment date difference in days
moment(new Date()).diff(moment(new Date()), 'days') // 0
Example 2: calculate time difference in hrs moment
var duration = moment.duration(end.diff(startTime));
var hours = duration.asHours();