GenerateRandomSearch

Nth Weekday Date Calculator

A great many dates are defined by a rule rather than a number: the fourth Thursday of November, the last Monday of May, the third Friday of every month. Working those out by hand means counting on a calendar, and the awkward cases are the months with only four of a weekday when you asked for the fifth. This finds the date, lists every occurrence in the month, and says outright when the one you asked for does not exist.

What this generator does

Walks every day of the month, collects the ones falling on the chosen weekday, and takes the nth — counting from the end for 'last'. It reports how many occurrences the month has and whether the date found is the final one.

How to use this tool

  1. Choose the year, month, weekday and which occurrence.
  2. Read the date, or the note saying there isn't one.
  3. Look at the full list of that weekday's dates in the month.
  4. Compare 'fourth' against 'last' — sometimes they differ.

Understanding the controls

Year and month
Any month from 1900 to 2200. Leap years are handled, including the century rule that makes 1900 not a leap year and 2000 one.
Weekday and which one
First through fifth, or last. Choosing the fifth often gives no date at all, which the tool says rather than silently returning the fourth.

Common use cases

  • Finding the date of a rule-defined holiday in any year
  • Working out a recurring monthly meeting date
  • Checking whether 'the fourth' and 'the last' are the same date this month
  • Planning a schedule around the third Friday of each month
  • Producing dates for a calendar or a rota

How this generator works

The day of the week is computed arithmetically from the date rather than by asking a date library, so no timezone can shift the answer. Every day of the month is checked against the chosen weekday and collected in order, and the nth is taken — or counted back from the end when 'last' is chosen. Before display the date found is confirmed to fall on that weekday, to be inside the month, and to be at exactly the position claimed, with the occurrences recounted independently.

Randomness and fairness

Nothing here is random. A year, month, weekday and ordinal give exactly one date, or none.

For how randomness is produced across the whole site, see how Generate Random works.

Limitations and good to know

  • The Gregorian calendar only, so dates before its adoption in a given country will not match historical records.
  • No timezone handling at all, which is deliberate — a rule-defined date is a calendar date rather than an instant.
  • Fifth occurrences frequently do not exist, and the tool reports that rather than falling back to the fourth.
  • Holidays that move for other reasons, such as a bank holiday shifted because it falls on a weekend, need that rule applied separately.

Privacy and your data

The calculation runs in your browser and your choices are never transmitted, stored or included in analytics.