Source Code:
(back to article)
import calendar from datetime import datetime date = datetime(2022, 12, 10) year = date.year month = date.month _, last_day = calendar.monthrange(year, month) print(last_day)
Result:
Report an issue