r/programminghelp • u/[deleted] • Mar 31 '20
Python Iterating using python's datetime.date
So, I'm making a program that requires an array of each date between two given dates -
start = datetime.date(2020,1,1)
end = datetime.date(2020,12,31)
myArr = [all dates between (and including) start and end]Is there a way to fill this array with every valid date between those two?
4
Upvotes
3
u/[deleted] Mar 31 '20
It should work