When I receive two dates from a web service in the format below:
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);
I'm encountering an issue where I get NaN
as the output. Can anyone help me figure out what's going wrong?