How to calculate the difference between 2 dates in Javascript?
It would have been great if Javascript date objects could have been substracted like numbers. const then = new Date(); const now = new Date(); const difference = now - then;But unfortunately, that's not possible