Paritian

Time & Dates

Nth Weekday of the Month Calculator (4th Thursday of November, Last Monday of May)

The date of the first, second, third, fourth or last given weekday of a month in any year — the way many holidays and deadlines are defined.

Results

Day of the month it falls on 26
How many of that weekday the month has 4
Days in the month 30
Day of the year 330

What this tool does

Many holidays are defined as 'the n-th weekday of a month' rather than a fixed date: Thanksgiving in the United States is the fourth Thursday of November, Memorial Day the last Monday of May, Labor Day the first Monday of September, and Mother's Day in several countries the second Sunday of May. The date therefore moves between years. A month has four or five of any weekday; asking for the fifth would fail in a four-weekday month, which is why this tool offers 'last' instead, and tells you how many that weekday the month has.

Formula

first = 1 + (weekday − weekday of the 1st) mod 7 · nth = first + 7 × (n − 1) · last = first + 7 × (count − 1)

Variables

SymbolMeaningUnit
yrYear—
moMonth (1–12)—
wdDay of the week—
nnWhich one—
DYDay of the month it falls on—
CTHow many of that weekday the month has—
DMDays in the month—
DODay of the year—

Worked example

  • Year2026
  • Month (1–12)11
  • Day of the week4
  • Which one4
  • Day of the month it falls on26
  • How many of that weekday the month has4
  • Days in the month30
  • Day of the year330

Limitations

  • Only Saturdays and Sundays are excluded. Public holidays differ by country and are not deducted.
  • Dates are handled in the proleptic Gregorian calendar, which is the one computers use. For dates before the Gregorian reform of 1582 this differs from what was written at the time.