Here two date variable available.one is date and another one is todaydate.
I need to calculate the day in between today date and date.
var s=jSonArray[0].new_StartDate;//retrive the s value from Json Array
var dateString = s.substr(6);
var currentTime = new Date(parseInt(dateString ));
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var date = month + "/" +day + "/" + year;
var currentDateTime = new Date();
var todaydate= (currentDateTime.getMonth() + 1) + '/' + currentDateTime.getDate() + '/' + currentDateTime.getFullYear();