I am storing the dates in these two variables. How to subtract these two dates to get number of days.Here in one variable the date has been got from the database and another variable holds the today date. Now I want to find the difference in days. some thing like var numberofdays= dt_ret-dt_due;
var dt_due= document.getElementById("duedate").value=a.four;
var dt_ret=today;