You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from datetime import date, timedelta
|
|
import calendar
|
|
start_date = date(2014, 12, 25)
|
|
days_in_month = calendar.monthrange(start_date.year, start_date.month)[1]
|
|
print(start_date + timedelta(days=days_in_month)) |