dash–calculator

04 Numbers and Counting

M Days Meaning & How the Date System Works

Readout 04-0414 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

M days are the numbered weekdays in a monthly calendar system where each day of the week is labeled with a letter (M for Monday, T for Tuesday, etc.) and the first occurrence of that letter in the month is called the 1st M day, the second occurrence the 2nd M day, and so on. In practical use, saying “the 3rd M day” means the third Monday of that month, which is a compact way to schedule recurring events or deadlines without writing a specific date.

Formula

The date of the n-th occurrence of a given weekday in a month is found by locating the first occurrence of that weekday and then adding 7 days for each subsequent occurrence. In symbols:

date = (n − 1) × 7 + 1 + ((d − w1) mod 7)

  • n – the occurrence number (1st, 2nd, 3rd, …), a whole number from 1 to 5.
  • d – the target weekday, coded 1 = Monday, 2 = Tuesday, …, 7 = Sunday.
  • w1 – the weekday of the 1st day of the month, using the same 1–7 code.
  • date – the day-of-month number (1–31) of the nth occurrence.

The expression mod(d − w1, 7) gives the offset from the 1st of the month to the first target weekday. For example, if the month starts on Wednesday (w1 = 3) and you want Friday (d = 5), the offset is (5 − 3) mod 7 = 2, so the first Friday is the 3rd day of the month.

Worked Example

Using the default values from the calculator: year 2025, month 6 (June), occurrence 3, weekday 1 (Monday).

  1. Find the weekday of June 1, 2025. June 1, 2025 is a Sunday, so w1 = 7.
  2. Compute the offset: (d − w1) mod 7 = (1 − 7) mod 7 = (−6) mod 7 = 1.
  3. Add the offset to the 1st: 1 + 1 = 2, so the first Monday is June 2.
  4. Add (n − 1) × 7 = 2 × 7 = 14 days: 2 + 14 = 16.

The 3rd Monday of June 2025 is June 16, 2025. The calculator returns 16 as the day-of-month, which matches.

Where M Days Are Used

M-day notation appears in several everyday contexts where you need to refer to a weekday without naming a date:

  • Recurring meetings – “The 2nd T day” means the second Tuesday of the month, commonly used for club meetings, board sessions, or class schedules.
  • Payroll and billing cycles – Some invoices or paychecks are set to fall on a specific weekday, like “the last F day” (last Friday) of the month.
  • Holiday calculations – Many holidays are defined by occurrence, e.g., Thanksgiving in the U.S. is the 4th Thursday of November, which is the 4th T day.
  • Calendar apps – Recurring event rules often use “every 3rd Monday” which is exactly the 3rd M day.

This system avoids confusion when a month changes, because the weekday name and occurrence number stay stable even if the date shifts.

How to Read an M-Day Reference

An M-day reference has two parts: the occurrence number and the weekday letter. For example:

  • 1st M day – the first Monday of the month, always between the 1st and 7th.
  • 3rd W day – the third Wednesday, always between the 15th and 21st.
  • Last F day – the final Friday, which could be the 4th or 5th occurrence depending on the month’s length.

Note that “last” is not the same as a numbered occurrence. A month with 31 days that starts on a Friday has five Fridays, so the last Friday is the 5th F day; a month with 30 days starting on Saturday has only four Fridays, so the last Friday is the 4th. Always check the calendar to confirm which occurrence is the last.

Common Mistakes and Misconceptions

A frequent error is confusing the weekday letter with the month’s initial. “M day” always means Monday, not a day in March or May. Another mistake is assuming the 5th occurrence always exists; February has only 28 or 29 days, so it can never have five of the same weekday unless it starts on that weekday and is a leap year. For example, February 2020 started on Saturday and had 29 days, giving five Saturdays, but February 2025 starts on Saturday and has 28 days, so it has only four Saturdays.

Also, when using the formula, be careful with the modulo operation on negative numbers. In some programming languages, (−6) mod 7 might return −6 instead of 1. The correct mathematical result is always a non-negative remainder less than 7. In our calculator, the formula handles this correctly, but if you code it yourself, use a function that returns a positive remainder.

Alternatives to M-Day Notation

If M days feel confusing, there are other ways to express the same idea:

  • Exact date – “June 16, 2025” is unambiguous but loses the recurring pattern.
  • Day-of-year – “Day 167” is used in logistics but is hard to visualize.
  • ISO week date – “2025-W25-1” gives the Monday of week 25, but it’s not monthly.
  • Relative terms – “the Monday after the 15th” works but requires a reference point.

M days are most useful when you want a rule that repeats every month, because the date changes but the weekday and occurrence stay constant.

Limitations and Edge Cases

The formula works for any year from 1901 to 2099, which covers all dates in the Gregorian calendar used by most of the world. However, it assumes the standard calendar with no skipped days. If you need to work with historical dates before the Gregorian adoption, or with locales that use different week start days (e.g., Sunday as day 1), adjust the weekday code accordingly.

Another edge case is when a month has only four occurrences of a weekday, but you ask for the 5th. The formula will return a date beyond the month’s length (e.g., 32 or 35). In that case, the result is invalid—there is no 5th M day. The calculator’s max occurrence is 5, but it does not automatically check whether that occurrence exists. Always verify that the returned date is within the month’s day count.

Frequently Asked Questions

What does “M day” stand for? It stands for “Monday day” in the context of weekly letter labels. The letter M is just the first letter of Monday, not a month name.

Is the 5th M day always possible? No. Only months with 31 days that start on a Monday, Tuesday, or Wednesday can have five Mondays. February never has five Mondays unless it is a leap year starting on Monday, which is rare.

How do I find the last M day of a month? Count the Mondays in that month. If there are four, the last is the 4th; if five, the last is the 5th. You can also use the formula with n equal to the total number of occurrences, which you find by checking the day of the week of the month’s last day.

Why do some calendars use T for both Tuesday and Thursday? In a single-letter system, T is ambiguous. Some systems use Tu for Tuesday and Th for Thursday, but the common shorthand in M-day notation uses T for Tuesday and R for Thursday (from the Latin “dies Jovis”?) Actually, the most common convention is to use T for Tuesday and R for Thursday, but many informal notes just say “T day” and rely on context. To avoid confusion, always specify which weekday you mean.

Can I use M days for weekly events that repeat every month? Yes, but be careful: a weekly event that happens every Monday is not an M-day occurrence; it’s simply “every Monday.” M days are specifically for the nth occurrence within a month, not for every week.

Related

Formula used
in y | Year | - | 2025 | 1901 | 2099
in m | Month | - | 6 | 1 | 12
in n | Occurrence | - | 3 | 1 | 5
in d | Weekday (1=Mon) | - | 1 | 1 | 7
out date | Date of nth weekday | - | (n - 1) * 7 + 1 + mod(d - weekday(year, month, 1), 7) | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More on this panel

The whole Numbers and Counting panel →