shumar,
<script>
function fn(from,to)
{
var arr = [];
from = from.split(/-|\./);
to = to.split(/-|\./);
from = new Date(from[0],from[2]-1,from[1]);
to = new Date(to[0],to[2]-1,to[1]);
for (; from <= to; ) {
arr.push((from.getDate()+"."+(from.getMonth()+1)+"."+from.getFullYear()).replace(/(^|\.)(?=\d\.)/g, "$10"));
from.setDate(from.getDate()+1);
}
return arr
}
document.write(JSON.stringify(fn('2017-01-01', '2017-03-01')))
</script>