New to Javascript and learning about the Date
object. I am working on an excercise that gives me two date objects
, and I would like to get the number of days between them. To do this I will take the endate - startdate
. How can I go about doing this since the dates are in this format below.
Edit1: I have looked at the previous asked questions but they don't answer how to format the dates I am asking.
startdate => 2019-04-01T04:00:00.000Z
endate => 2019-04-08T04:00:00.000Z