Skip to main content

All Questions

44 votes
4 answers
70k views

Python: Difference of 2 datetimes in months [duplicate]

Possible Duplicate: Best way to find the months between two dates (in python) I would like to know how I can have the exact number of months for this difference: date1 = datetime.strptime(str('...
Tiago Moutinho's user avatar