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(\
Use the getTime method to get the time in total milliseconds since 1970-01-01, and subtract those:
var time = new Date().getTime() - new Date("2013-02-20T12:01:04.753Z").getTime();