I have two Date() objects, lets say for example date A is yesterday and date B is todays date. The end purpose is to find how much time occured between these two dates. So I subtract date A from date B
let dateA = new Date("2020-02-23T00:00:00.000Z")
let dateB = new Date("2020-02-24T00:00:00.000Z")
let timeDifference = dateB - dateA
console.log(timeDifference)
What is the output type of this? is it milliseconds, seconds? unixtimestamp?
What would be the best way to display how much time occured in a user friendly way, moment.js?