In my c# program I am accepting a start date and end date parameter and processing data based on a week. For example if a user enters a start date of 12/28/2014 - 3/02/2015, I want a list of ranges as such:
12/28/2014 - 01/04/2015
01/04/2015 - 01/11/2015
01/11/2015 - 01/18/2015
My program expects a start date of Sunday and end date of the next Sunday. (process data less than end date). I am looking to put this list of date ranges into an array or dictionary so I can then loop through and process each week.
User can also just enter a specific week such as 08/02/2015 - 08/09/2015 where I would just add those dates to the list and loop through the list once.