Utils.py 249 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 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