Nth Weekday of Month Calculator

Find dates like the first Monday, third Thursday, fifth Tuesday, or last Friday in one month or across a short month-by-month schedule.

Examples

First Monday meeting series

Preview the first Monday for a recurring meeting run.

Start month
2026-01
Planning mode
Preview month count
Months to preview
4 months
Weekday
Monday
Occurrence
1st
First matching date
Jan 5, 2026
Months with a match
4
Months checked
4
Month-by-month plan
2026-01: 2026-01-05, 2026-02: 2026-02-02, 2026-03: 2026-03-02, 2026-04: 2026-04-06

Embed this calculator

Copy a free iframe snippet for articles, learning pages, forums, wikis, newsletters, and internal docs.

How It Works

Formula

matchesm={d[1,Dm]:weekday(y,m,d)=w}\text{matches}_m = \{ d \in [1,D_m] : \operatorname{weekday}(y,m,d)=w \}

answerm={matchesm[k]for k{1,2,3,4,5}last(matchesm)for last\text{answer}_m = \begin{cases}\text{matches}_m[k] & \text{for } k \in \{1,2,3,4,5\} \\ \text{last} \left(\text{matches}_m\right) & \text{for last} \end{cases}

Variables, symbols and units

DmD_m

Number of days in the target Gregorian month

ww

Chosen weekday

kk

Chosen ordinal position inside that month

matchesm\text{matches}_m

Ordered list of dates in month m that land on the chosen weekday
Calculation method explained

Choose a start month, a weekday, and an ordinal such as 1st, 3rd, 5th, or last. The calculator resolves the matching date inside each Gregorian month, surfaces the exact date when it exists, and makes no-match months obvious when the requested ordinal does not occur.

  1. Parse the start month and, when needed, the inclusive end month or preview count.
  2. For each target month, enumerate every Gregorian day in that month.
  3. Keep only the dates whose weekday matches the chosen weekday.
  4. Pick the requested occurrence: 1st through 5th by index, or the final item for last.
  5. If the requested index does not exist, mark that month as a no-match month instead of guessing or carrying the answer elsewhere.

Examples

First Monday meeting series2026-01 · Preview month countJan 5, 2026

Preview the first Monday for a recurring meeting run.

Start month
2026-01
Planning mode
Preview month count
Months to preview
4 months
Weekday
Monday
Occurrence
1st
First matching date
Jan 5, 2026
Last Friday wrap-up2026-02 · Single monthFeb 27, 2026

Check the last Friday in one month before you set a reminder.

Start month
2026-02
Planning mode
Single month
Weekday
Friday
Occurrence
Last
Exact date
Feb 27, 2026
Fifth Tuesday no-match example2026-02 · Preview month countMar 31, 2026

See how the planner makes a missing fifth weekday explicit in a short month.

Start month
2026-02
Planning mode
Preview month count
Months to preview
3 months
Weekday
Tuesday
Occurrence
5th
First matching date
Mar 31, 2026

Frequently Asked Questions

How does the calculator find the nth weekday?
For each target month, it walks the Gregorian dates in that month, keeps only the dates whose weekday matches your selection, and then picks the requested ordinal or the last match.
What happens when a month does not have a fifth match?
That month is shown as an explicit no-match month. Nothing is hidden, blank, or silently rolled into the next month.
Does the last option work differently?
It uses the same monthly weekday list, but chooses the final matching date in that month instead of the first through fifth position.
How is this different from Day of Week, Date Add/Subtract, and Weekdays Calculator?
This tool answers which date is the nth chosen weekday inside a month or short month series. Day of Week labels one known date, Date Add/Subtract shifts one known date, and Weekdays Calculator counts selected weekdays across a range.
Does it know holidays, workdays, payroll, or filing calendars?
No. This is Gregorian month math only. It does not know holidays, business-day rules, payroll schedules, tax calendars, or official local exceptions.

Related Calculators

All calculators