Question: how to calculate days between two dates in angularjs?
Answer: var dateone = "2016-08-21T07:00:00.000Z"; var datetwo = "2016-08-28T07:00:00.000Z"; var datediff = datetwo - dateone; var numdays = Math. round(datediff); console. log("Number of Days is " + numdays);