Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Weekly Calendar by rodka81
from datetime import date, timedelta
def weekly_calendar(year, month, day, firstweekday):
input_date = date(year, month, day)
offset = (input_date.weekday() - firstweekday) % 7
return [(input_date - timedelta(days=offset-dlt)).day for dlt in range(7)]
Sept. 19, 2020
Comments: