so what is the easiest way to to get to a list of months in a given timeinterval, e.g.<br><br>>> startdate = datetime.date(2005,2,13)<br>>> enddate = datetime.date(2007,1,25)<br>>> delta = enddate - startdate
<br>>> delta.days<br>711<br>>> delta.months<br>exceptions.AttributeError Traceback (most recent call last)<br>AttributeError: 'datetime.timedelta' object has no attribute 'months'
<br><br>I want to compute the "monthdifference" and so I can then iterate over the months from my startdate to my enddate<br>what is the easiest way to accomplish this?<br>thanks for any insight you might have<br>
-frank<br><br>