how can obtain de difference of two dates in days from an html5 form with date picker ?
i have tried with something like this, that didn't work yet: it showed NaN (Not a Number)
<!DOCTYPE html>
<html>
<body>
<form oninput="c.value=b.value-a.value;">
date a:<input type="date" id="a" value="">
date b:<input type="date" id="b" value="">
<br>
c = b-a in days:<output name="c" for="a b"></output><br>
</form>
</body>
</html>