for start of month to the beginning of next month from datetime import timedelta from dateutil.relativedelta import relativedelta
end_date = start_date + relativedelta(months=delta_period) + timedelta(days=-delta_period) -- https://mail.python.org/mailman/listinfo/python-list