It is necessary that these dates be broken into components, that is
if 11/20/2016 to 01/20/2017
that is '20 .11.2016 ',' 21 .11.2016 ',' 22 .11.2016 '.... and so on until '19 .01.2017', '20 .01.2017'
in the form of js
I tried
var d = new Date(2016, 10, 20); var end = new Date(2017, 01, 20); var dates = []; while (d <= end) { dates.push(d.toLocaleDateString()); d.setDate(d.getDate() + 1); } but it fails. With new Date(2017, 01, 20) it shows not as the first month, as the second