// In order to calculate the difference you have to put the + operator, // that way typescript converts the dates to numbers. +new Date()- +new Date("2013-02-20T12:01:04.753Z")