var begin = "2017-06-01";var end = "2017-07-01";var diffday = getDateDiff(begin, end); function getDateDiff(date1,date2){ var arrDate1 = date1.split("-"); var getDate1 = new Date(parseInt(arrDate1[0]),parseInt(arrDate1[1])-1,parseInt(arrDate1[2])); var arrDate2 = date2.split("-"); var getDate2 = new Date(parseInt(arrDate2[0]),parseInt(arrDate2[1])-1,parseInt(arrDate2[2])); var getDiffTime = getD..