function getSecondsBetween2Dates(startDate : any, endDate : any) {
const millisecondsInSecond = 1000;
return Math.round(Math.abs(endDate - startDate) / millisecondsInSecond);
}
console.log(getSecondsBetween2Dates(new Date(2022, 4, 8, 9, 53, 0), new Date(2022, 4, 8, 9, 54, 37)));
/*
run:
97
*/