Is there a way using Python\'s standard library to easily determine (i.e. one function call) the last day of a given month?
If the standard library doesn\'t support
you can use relativedelta https://dateutil.readthedocs.io/en/stable/relativedelta.html month_end = + relativedelta(day=31) that will give you the last day.
month_end = + relativedelta(day=31)