I have 2 dates, and I'm trying to create the x-axis labels of the graph.
As such, I need a way to take 2 datetime objects, i.e. 2009-10-12 00:00:00 and 2009-10-20 00:00:00 and create a list like this:
["2009-10-12", "2009-10-13", "2009-10-14", ..., "2009-10-19", "2009-10-20"]
What libraries should I use to assist? I have a sense of datetime , and the timedelta strong> functionality will help a bit.
I can include the code if that makes sense, but I have the feeling that something is built into the python libraries that make it very easy. It seems I just missed it.
source
share