I have date range
var fromDate = "2017-01-05";
var toDate = "2017-01-10";
How can I get days of the week that belong to that range?
A range can be different, it can be 2016-12-25 to 2017-05-05, etc. I need to return unique days of the week from provided date range.
The result should be an array of days of weeks. For first range should be ["Thursday", "Friday", "Saturday", "Sunday", "Monday", "Tuesday"]
Moment can be used if needed, but no jQuery.