function getHoursBetween2Dates(startDate : any, endDate : any) {
const millisecondsInHour = 1000 * 60 * 60;
return Math.round(Math.abs(endDate - startDate) / millisecondsInHour);
}
console.log(getHoursBetween2Dates(new Date(2022, 3, 28, 9, 31, 0), new Date(2022, 3, 31, 10, 57, 30)));
/*
run:
73
*/