Add Months to Date in Python

Unfortunately datetime.timedelta does not allow to use months. However you can use relativedelta:

from datetime import date
from dateutil.relativedelta import relativedelta

# adding months to a particular date
new_date = date(2022, 12, 14) + relativedelta(months=2)

Thanks! You can always email me or use contact form for more questions/comments etc.