Typescript : find date difference in dates/hours/minutes/ second code example
Example: get minutes between two dates ts
var minutes = Math.abs(startDate.getTime() - endDate.getTime()) / 36e5 * 60;
var minutes = Math.abs(startDate.getTime() - endDate.getTime()) / 36e5 * 60;