Back
You can simply use the monthrange methods from python's calendar. This method will return a tuple with first element as start of the month and second element as the end of the month. So to get the last day of the month.
module.calendar.monthrange(year, month)[1]
31k questions
32.8k answers
501 comments
693 users