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
The easiest & most reliable way I've found so Far is as:
from datetime import datetime import calendar days_in_month = calendar.monthrange(2020, 12)[1] end_dt = datetime(2020, 12, days_in_month)