Lets say I have a starting date of 12/30/2019 (monday) and an ending date of 1/5/2020 (sunday). I want to assign 7 variables for each day from the starting to ending date, inclusive. The starting and ending dates will be the only given values, the other 5 dates will be derived by the script.
the variables I will assign will be:
monday = '12 30 2019'
sunday = '1 5 2020'
given the assigned values for monday and sunday, the five days in between will be assigned dynamically as such:
tuesday = '12 31 2019'
wednesday = '1 1 2020'
thursday = '1 2 2020'
friday = '1 3 2020'
saturday = '1 4 2020'
This code should work for any given starting and ending date, in which the starting date will always be a monday with ending date always being the next sunday after. I've tried and failed using the datetime module.