<script type="text/javascript">
	function getDate(datestr){
	  var temp = datestr.split("-");
	  var date = new Date(temp[0],temp[1],temp[2]);
	  return date;
	}
	
	var start = "2016-10-10";
	var end = "2016-10-18";
	var startTime = getDate(start);
	var endTime = getDate(end);
	while((endTime.getTime()-startTime.getTime())>=0){
	  var year = startTime.getFullYear();
	  var month = startTime.getMonth().toString().length==1?"0"+startTime.getMonth().toString():startTime.getMonth();
	  var day = startTime.getDate().toString().length==1?"0"+startTime.getDate():startTime.getDate();
	  alert(year+"-"+month+"-"+day);
	  
	  startTime.setDate(startTime.getDate()+1);
	}
	
</script>