Question: how to calculate difference between two dates in typescript?
Answer: var t = +(new Date()) - +(new Date("2013-02-20T12:01:04.753Z")); See discussion here. From there you can make a formula to convert the difference to minutes or hours .