Question: python calculate how many months between two dates?
Answer: end_date = datetime. datetime(2010,1,1)
start_date = datetime. datetime(2009, 4, 1)
num_months = (end_date. year - start_date. year) * 12 + (end_date. month - start_date. month)