Utils.py 249 Bytes
from dateutil.relativedelta import *


def add_one_month(date, i):
    # Add one month to the date using timedelta
    next_month = date + relativedelta(months=+i)
    # print(next_month)
    new_date = next_month.replace(day=1)
    return new_date