Previous Weekday On or Before a Date screenshot

Previous Weekday On or Before a Date

Find the most recent Monday, Tuesday or any other weekday on or before a given date.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
States its rule
Nothing uploaded

What this Previous Weekday On or Before a Date calculator does

Find the most recent Monday, Tuesday or any other weekday on or before a given date.

The answer is the last date at or before the one you type whose weekday matches. A gap of zero means the start date already falls on that weekday. The count is calendar days, read at midnight in this browser's local time zone. The Gregorian leap rule is read rather than assumed - February has 29 days when the year is divisible by 4 and not by 100, or when it is divisible by 400 - so a leap year moves no count here by hand.

How to use it

Enter Start date, Weekday wanted, then press Calculate. The page recalculates as you type and runs the same operation again from the values on screen.

Worked example

Input:

Start date = 2026-11-22
Weekday wanted = Monday

Output:

Previous matching date = 2026-11-16
Days back = 6

Why it runs in your browser

Every date is read as a civil date in this browser's local time zone: the page carries no time-zone database and no locale data, and nothing you type is sent anywhere.

Previous Weekday On or Before a Date: Find the most recent Monday, Tuesday or any other weekday on or before a given date.

The answer is the last date at or before the one you type whose weekday matches. A gap of zero means the start date already falls on that weekday. The count is calendar days, read at midnight in this browser's local time zone. The Gregorian leap rule is read rather than assumed - February has 29 days when the year is divisible by 4 and not by 100, or when it is divisible by 400 - so a leap year moves no count here by hand.

Worked example: Start date = 2026-11-22, Weekday wanted = Monday gives Previous matching date = 2026-11-16; Days back = 6.

How to use the Previous Weekday On or Before a Date calculator

Enter Start date, Weekday wanted, then press Calculate. The page recalculates as you type and runs the same operation again from the values on screen.

Every date is read as a civil date in this browser's local time zone: the page carries no time-zone database and no locale data, and nothing you type is sent anywhere.

  • Start date — a date written YYYY-MM-DD
  • Weekday wanted — one of Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

The rule this page applies

The answer is the last date at or before the one you type whose weekday matches. A gap of zero means the start date already falls on that weekday. The count is calendar days, read at midnight in this browser's local time zone. The Gregorian leap rule is read rather than assumed - February has 29 days when the year is divisible by 4 and not by 100, or when it is divisible by 400 - so a leap year moves no count here by hand.

A year is a leap year when it is divisible by 4, except a century, which is a leap year only when divisible by 400. February therefore has 29 days in 2028 and 28 in 2026, and the page reads the real month length rather than a table.

  • Previous matching date = 2026-11-16
  • Days back = 6

What to Expect

Best for

  • Checking a date by hand
  • Getting the previous matching date quickly
  • Comparing two candidate dates

Not ideal for

  • Statutory holiday calendars
  • Time-zone conversion
  • Locales other than English

What this tool keeps

  • Your inputs in this tab
  • The rule, printed in full
  • The same answer on every run

What may need cleanup

  • A date the page refuses, which names the reason instead of guessing
  • A count outside the supported range, which is refused by name

Common errors

  • A date that does not exist, such as 30 February, is refused rather than rolled forward
  • A blank field is refused rather than read as today
  • A written date in an order the page does not accept is refused by name

Example use cases

  • Planning around a deadline
  • Checking a date before you commit to it
  • Homework and exam checking

Sample input

Start date = 2026-11-22, Weekday wanted = Monday

Sample output

Previous matching date = 2026-11-16; Days back = 6

Who this is for

  • Anyone checking a date by hand
  • Students and teachers

Frequently asked questions

What does the Previous Weekday On or Before a Date calculator do?

Find the most recent Monday, Tuesday or any other weekday on or before a given date. The page prints previous matching date, days back.

How does this page count days?

The answer is the last date at or before the one you type whose weekday matches. A gap of zero means the start date already falls on that weekday. The count is calendar days, read at midnight in this browser's local time zone. The Gregorian leap rule is read rather than assumed - February has 29 days when the year is divisible by 4 and not by 100, or when it is divisible by 400 - so a leap year moves no count here by hand.

How are leap years handled?

A year is a leap year when it is divisible by 4, except a century, which is a leap year only when divisible by 400. February therefore has 29 days in 2028 and 28 in 2026, and the page reads the real month length rather than a table.

Which time zone does the page use?

Every date is read as a civil date in this browser's local time zone: the page carries no time-zone database and no locale data, and nothing you type is sent anywhere.

What if the date is already that weekday?

The answer is that same date with a gap of 0, because this page includes the start date.

Is a weekend treated differently?

No. Every weekday is treated the same way, including Saturday and Sunday; the page simply matches the one you name.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.