http://jwchoi85.tistory.com/230 var sNowDay = "2016-07-25"; var sWinDay = "2016-08-01"; var todayArray = sNowDay.split("-"); var todayObj = new Date(todayArray[0], Number(todayArray[1])-1, todayArray[2]); var winArray = sWinDay.split("-"); var winObj = new Date(winArray[0], Number(winArray[1])-1, winArray[2]); var nBetweenCnt = (todayObj.getTime() - winObj.getTime())/1000/60/60/24; if(nBetweenCn..