This works in Javascript
new Date()-new Date(\"2013-02-20T12:01:04.753Z\")
But in typescript I can\'t rest two new Dates
Date(\
In order to calculate the difference you have to put the + operator,
+
that way typescript converts the dates to numbers.
typescript
+new Date()- +new Date("2013-02-20T12:01:04.753Z")
From there you can make a formula to convert the difference to minutes or hours.
minutes
hours