I have a small code that picks up the dates from a json file. and returns the amount of days left before it expires.
How ever its returning NaN in console log.
var start = "2019/03/12";
var end = "2020/03/12";
days = (end- start) / (1000 * 60 * 60 * 24);
console.log(Math.round(days));
this should be correct. but its not working.