Skip to content
  • Hi Don't understand how you check for "first and third Monday of every month".

    >>> date.today().isocalendar()
    datetime.IsoCalendarDate(year=2024, week=34, weekday=4)

    so you check if it's Monday with today[2] == 1, ok I get it.
    but today[1] shows current week number

    >>> today[1]
    34

    so how the week number is relevant in checking if Monday is first or third in the month? Could you please eleborate?

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment