function getHoursBetween2Dates(startDate, endDate) {
const millisecondsInHour = 1000 * 60 * 60;
return Math.round(Math.abs(endDate - startDate) / millisecondsInHour);
}
console.log(getHoursBetween2Dates(new Date(2022, 3, 27, 8, 31, 0), new Date(2022, 3, 31, 9, 56, 30)));
/*
run:
97
*/