Bookmarks    
nPr and nCr    
Random Number    
SD Calculator    
Sample Size    
Percent Error    
Density    
Molarity    
Molar Mass    
Ohm's Law    
Watts to Amps    
Voltage Drop    
Long Division    
Mixed Numbers    
Rounding    
Nth Root    
Exponents    
Half-Life    
Polar Form    
De Moivre    
3D Distance    
Point to Line    
Cross Product    
Determinant    
Sin Cos Tan    
Triangle Area    
Scale Factor    
Sector Area    
Ellipse Area    
Cube Volume    
Box Volume    
Sphere Volume    
Cone Volume    
Pipe Volume    
Time Duration    
Time Card    
Present Value    
Future Value    
Churn Rate    
A/B Test Calc    
SEO Traffic    
Ideal Weight    
Fat Intake    
Child Height    
Golf Handicap    
Heat Index    
Wind Chill    
Dew Point    
Download Time    
kWh to Cost    
AC Size (BTU)    
Heating Costs    
LED Savings    
Trip Gas Cost    
Tire Size    
Solar Output    
Solar Payback    
Battery Size    
Wall Area    
Gravel Needed    
Mortar Mix    
Slope Grade    
Curtain Size    
Soil Needed    
Sod Needed    
Ramp Length    
Blind Size    
Drain Slope    
Board Feet    
Heat Loss    
Furniture Fit    
Moving Boxes    
Plywood Cuts    
Shelf Sag    
   Add
Probability and random number calculators
Independent Events
Independent Events
Two Events Solver
Two Events Solver
Repeated Trials
Repeated Trials
Bayes' Theorem
Bayes' Theorem
Expected Value
Expected Value
Binomial Distribution
Binomial Distribution
nPr and nCr
nPr and nCr
Circular Permutation
Circular Permutation
With Repetition
With Repetition
Random Number
Random Number
Averages and statistics calculators
Average Calculator
Average Calculator
Mean Median Mode
Mean Median Mode
SD Calculator
SD Calculator
Quartiles & IQR
Quartiles & IQR
Frequency Table
Frequency Table
Correlation (r)
Correlation (r)
Normal Probability
Normal Probability
Z-Score Calculator
Z-Score Calculator
Confidence Interval
Confidence Interval
Sample Size
Sample Size
Mark & Recapture
Mark & Recapture
P-Value Calculator
P-Value Calculator
Percentage and ratio calculators
Percentage Calc
Percentage Calc
Percent Change
Percent Change
Percent Difference
Percent Difference
Percent Error
Percent Error
Ratio Calculator
Ratio Calculator
Discount Calculator
Discount Calculator
Sales Tax Calculator
Sales Tax Calculator
Margin Calculator
Margin Calculator
Speed calculators
Speed Calculator
Speed Calculator
Density and concentration calculators
Density
Density
Molarity
Molarity
Molar Mass
Molar Mass
Physics and electricity calculators
Ohm's Law
Ohm's Law
Watts to Amps
Watts to Amps
Resistor Colors
Resistor Colors
Voltage Drop
Voltage Drop
Unit conversion calculators
Weight Converter
Weight Converter
Shoe Size Converter
Shoe Size Converter
Integer and signed number calculators
Long Division
Long Division
LCM Calculator
LCM Calculator
GCF Calculator
GCF Calculator
Integer Calculator
Integer Calculator
Prime Factorization
Prime Factorization
Diophantine Solver
Diophantine Solver
Modulo Calculator
Modulo Calculator
Factor Calculator
Factor Calculator
Roman Numerals
Roman Numerals
Fraction, decimal and rounding calculators
Fraction Calculator
Fraction Calculator
Mixed Numbers
Mixed Numbers
Simplify Fractions
Simplify Fractions
Fraction to Decimal
Fraction to Decimal
Decimal to Fraction
Decimal to Fraction
Rounding
Rounding
Equation and inequality calculators
Linear Equation
Linear Equation
Linear Systems
Linear Systems
Quadratic Formula
Quadratic Formula
Absolute Value
Absolute Value
Quadratic Inequality
Quadratic Inequality
Polynomial calculators
Binomial Theorem
Binomial Theorem
Square root and nth root calculators
Simplify Radicals
Simplify Radicals
Nth Root
Nth Root
Exponent and logarithm calculators
Exponents
Exponents
Log Calculator
Log Calculator
Number of Digits
Number of Digits
Scientific Notation
Scientific Notation
Sci. Notation Math
Sci. Notation Math
Half-Life
Half-Life
Complex number calculators
Complex Numbers
Complex Numbers
Polar Form
Polar Form
De Moivre
De Moivre
Function and graph calculators
Slope Calculator
Slope Calculator
Linear Function
Linear Function
Direct & Inverse Variation
Direct & Inverse Variation
y = ax² Calculator
y = ax² Calculator
Distance Formula
Distance Formula
3D Distance
3D Distance
Section Formula
Section Formula
Point to Line
Point to Line
Lat/Long Distance
Lat/Long Distance
Complete the Square
Complete the Square
Circle Equation
Circle Equation
Conic Sections
Conic Sections
Polar Coordinates
Polar Coordinates
Sequence calculators
Arithmetic Sequence
Arithmetic Sequence
Geometric Sequence
Geometric Sequence
Fibonacci Sequence
Fibonacci Sequence
Recurrence Relation
Recurrence Relation
Vector calculators
Vector Calculator
Vector Calculator
Cross Product
Cross Product
Matrix calculators
Matrix Calculator
Matrix Calculator
Determinant
Determinant
Inverse Matrix
Inverse Matrix
Plane geometry calculators
Sin Cos Tan
Sin Cos Tan
Degrees ⇔ Radians
Degrees ⇔ Radians
a sin θ + b cos θ
a sin θ + b cos θ
Triangle Solver
Triangle Solver
Triangle Area
Triangle Area
Right Triangle
Right Triangle
Pythagorean Theorem
Pythagorean Theorem
Polygon Angles
Polygon Angles
Scale Factor
Scale Factor
Parallel Lines
Parallel Lines
Rectangle Area
Rectangle Area
Parallelogram Area
Parallelogram Area
Trapezoid Area
Trapezoid Area
Circle Calculator
Circle Calculator
Sector Area
Sector Area
Inscribed Angle
Inscribed Angle
Ellipse Area
Ellipse Area
Solid geometry calculators
Cube Volume
Cube Volume
Cube Surface Area
Cube Surface Area
Box Volume
Box Volume
Box Surface Area
Box Surface Area
Cylinder Volume
Cylinder Volume
Cylinder Surface
Cylinder Surface
Sphere Volume
Sphere Volume
Sphere Surface
Sphere Surface
Spherical Cap Volume
Spherical Cap Volume
Cap Surface Area
Cap Surface Area
Ellipsoid Volume
Ellipsoid Volume
Ellipsoid Surface
Ellipsoid Surface
Pyramid Volume
Pyramid Volume
Pyramid Surface
Pyramid Surface
Cone Volume
Cone Volume
Cone Surface Area
Cone Surface Area
Frustum Volume
Frustum Volume
Frustum Surface Area
Frustum Surface Area
Pipe Volume
Pipe Volume
Capsule Volume
Capsule Volume
Capsule Surface Area
Capsule Surface Area
Date and time calculators
Age Calculator
Age Calculator
Days Between Dates
Days Between Dates
Date Calculator
Date Calculator
Hours From Now
Hours From Now
Day of the Week
Day of the Week
Time Calculator
Time Calculator
Time Zone Converter
Time Zone Converter
Hours Calculator
Hours Calculator
Time Duration
Time Duration
Time Card
Time Card
Finance and economics calculators
Compound Interest
Compound Interest
Simple Interest
Simple Interest
Interest Calculator
Interest Calculator
TVM Calculator
TVM Calculator
Present Value
Present Value
Future Value
Future Value
ROI Calculator
ROI Calculator
IRR Calculator
IRR Calculator
Payback Period
Payback Period
Average Return
Average Return
GDP Calculator
GDP Calculator
Web marketing and ad metric calculators
CTR Calculator
CTR Calculator
Conversion Rate
Conversion Rate
CPC, CPM & CPA
CPC, CPM & CPA
ROAS Calculator
ROAS Calculator
Break-Even CPA
Break-Even CPA
LTV Calculator
LTV Calculator
CAC Calculator
CAC Calculator
Churn Rate
Churn Rate
A/B Test Calc
A/B Test Calc
A/B Sample Size
A/B Sample Size
SEO Traffic
SEO Traffic
Break-Even Point
Break-Even Point
Markup vs. Margin
Markup vs. Margin
CAGR Calculator
CAGR Calculator
Health and fitness calculators
BMI Calculator
BMI Calculator
Sleep Calculator
Sleep Calculator
Calorie Calculator
Calorie Calculator
BMR Calculator
BMR Calculator
TDEE Calculator
TDEE Calculator
Ideal Weight
Ideal Weight
Body Fat Calculator
Body Fat Calculator
Lean Body Mass
Lean Body Mass
Calories Burned
Calories Burned
Protein Intake
Protein Intake
Macro Calculator
Macro Calculator
Carb Calculator
Carb Calculator
Fat Intake
Fat Intake
Child Height
Child Height
Sports calculators
Golf Handicap
Golf Handicap
Pace Calculator
Pace Calculator
1RM Calculator
1RM Calculator
Target Heart Rate
Target Heart Rate
Weather calculators
Heat Index
Heat Index
Wind Chill
Wind Chill
Dew Point
Dew Point
Computer calculators
Base Converter
Base Converter
Subnet Calculator
Subnet Calculator
Download Time
Download Time
Household energy and budget calculators
Electricity Cost
Electricity Cost
kWh to Cost
kWh to Cost
Yearly kWh to Cost
Yearly kWh to Cost
AC Size (BTU)
AC Size (BTU)
AC Running Cost
AC Running Cost
Heating Costs
Heating Costs
Gas vs Electric
Gas vs Electric
LED Savings
LED Savings
Salary Calculator
Salary Calculator
Budget Calculator
Budget Calculator
Car calculators
Trip Gas Cost
Trip Gas Cost
EV Charging Cost
EV Charging Cost
EV vs Gas Cost
EV vs Gas Cost
MPG Calculator
MPG Calculator
Tire Size
Tire Size
Solar power and battery calculators
Solar Output
Solar Output
Solar Panel Count
Solar Panel Count
Solar Payback
Solar Payback
Battery Size
Battery Size
Home and DIY calculators
Tile Calculator
Tile Calculator
Stair Calculator
Stair Calculator
Concrete Volume
Concrete Volume
Wall Area
Wall Area
Wallpaper Rolls
Wallpaper Rolls
Paint Calculator
Paint Calculator
Flooring Needed
Flooring Needed
Exterior Walls
Exterior Walls
Gravel Needed
Gravel Needed
Mortar Mix
Mortar Mix
Slope Grade
Slope Grade
Lumber Cut List
Lumber Cut List
Lot Coverage/FAR
Lot Coverage/FAR
Sheet Vinyl Roll
Sheet Vinyl Roll
Insulation Needed
Insulation Needed
Curtain Size
Curtain Size
TV Size & Distance
TV Size & Distance
Soil Needed
Soil Needed
Sod Needed
Sod Needed
Block Calculator
Block Calculator
Brick Calculator
Brick Calculator
Deck Materials
Deck Materials
Ramp Length
Ramp Length
Pilot Hole Size
Pilot Hole Size
Room Ventilation
Room Ventilation
Paint Thinning
Paint Thinning
Baseboard & Trim
Baseboard & Trim
Blind Size
Blind Size
Picture Hanging
Picture Hanging
Drain Slope
Drain Slope
Screw Calculator
Screw Calculator
Board Feet
Board Feet
Fence Calculator
Fence Calculator
Wood Shrinkage
Wood Shrinkage
Caulk Calculator
Caulk Calculator
Heat Loss
Heat Loss
Furniture Fit
Furniture Fit
Moving Boxes
Moving Boxes
Storage Capacity
Storage Capacity
Plywood Cuts
Plywood Cuts
Shelf Sag
Shelf Sag

Day of the Week Calculator (What Day Was It?)

Pick the date you want to check (you can also type it in). Along with the day of the week, you get the day of the year and which occurrence of that weekday it is in the year.

Type dates in the form month/day/year, such as 07/12/2026, for any year from 1 to 9999. Dates that do not exist (such as February 29 in a common year) give an error.
Result
Enter a date in the field on the left and press "Calculate". The result will appear here.

What you can do on this page

  • Enter a date and see which day of the week it is, on the spot (for any year from 1 to 9999)
  • You also get the day of the year (which day of the year it is) and the number of days left until New Year's Eve
  • You also see which occurrence of that weekday it is in the year (for example, the 27th of the 52 Saturdays in the year)
  • Use it for dates you have no calendar for: the day you were born, a day in history, or a future anniversary
  • A plain-language explanation of how to calculate the day of the week (Zeller's congruence) and copy-and-paste formulas for Excel, Google Sheets and Python are all on this page
For dates before October 15, 1582, this page shows the weekday you get by applying today's Gregorian calendar backward in time (the proleptic Gregorian calendar). It can differ from the calendar actually used then, such as the Julian calendar. Britain and its American colonies switched to the Gregorian calendar only in 1752, so dates written in American records before then may be Julian (Old Style) dates.

What is this calculation used for?

Finding the day of the week you were born

Many people do not know which day of the week they, or their family members, were born on. Birth certificates show the date, but not the weekday.
The old English nursery rhyme "Monday's child is fair of face, Tuesday's child is full of grace…" gives each birth weekday its own line, and in Thailand and Myanmar the weekday of your birth is important too (in Thailand, each weekday has its own color). Looking up your birth weekday is the most popular use of this page.

Finding the weekday of events in history

July 4, 1776 (the Declaration of Independence) was a Thursday, July 20, 1969 (the first Moon landing) was a Sunday, and September 11, 2001 was a Tuesday. Knowing the weekday helps you picture what that day was like for people then - a workday or a day off.
However, dates in records from before 1752 in Britain and its American colonies (before October 15, 1582 in much of Europe) are often Julian calendar dates, so they may differ from this calculator's result, which applies the Gregorian calendar backward.

Planning anniversaries and events

Check ahead of time which weekday a wedding anniversary, a company anniversary or a family birthday falls on next year, or in 5 or 10 years, and you can plan things like "a big celebration in the year it falls on a Saturday".
Prices and availability at wedding venues and restaurants depend a lot on the day of the week, so there are more reasons than you might think to know the weekday of a date far in the future.

Checking the dates on old records and documents

Bank counters and government offices are open only on weekdays, so sometimes you want to check whether the date on an old document was a weekday or a weekend - for example, "Was this receipt really dated on a business day?"
It also helps when you sort through diaries or budget records, or when you look up the weekday of a special day (the day you first met, the day you moved). This calculator does not know holidays, so for business days that include holidays, check a calendar as well.

Finding every Friday the 13th in a year

Some people like to know when Friday the 13th comes. Check the 13th of each month, and those that fall on a Friday are your answer. In 2026 there are three: February 13, March 13 and November 13. In 2027 there is only one, August 13.
Every year has at least one Friday the 13th and never more than three, because the 13ths of the 12 months fall on all 7 weekdays over the course of a year.

Formula

Zeller's congruence (finding the day of the week from a date)
Standard notation (the usual math form)
\(h\) \(=\) \((\) \(q\) \(+\) \(\left\lfloor \dfrac{13(m+1)}{5} \right\rfloor\) \(+\) \(K\) \(+\) \(\left\lfloor \dfrac{K}{4} \right\rfloor\) \(+\) \(\left\lfloor \dfrac{J}{4} \right\rfloor\) \(-\) \(2J\) \()\) \(\bmod\) \(7\)
In words (symbols replaced with words)
⑧ \(h\): weekday number \(=\) \((\) ① \(q\): day of the month \(+\) ② month term (month \(m\)) \(+\) ③ \(K\): last 2 digits of the year \(+\) ④ leap year term for \(K\) \(+\) ⑤ leap year term for the century (first 2 digits \(J\)) \(-\) ⑥ twice the first 2 digits \(J\) \()\) \(\bmod\) ⑦ \(7\): days in a week
The formula in words
① Take the \(q\): day of the month
② add the month term \(\left\lfloor 13(m+1) \div 5 \right\rfloor\) (\(\lfloor\ \rfloor\) means drop the part after the decimal point)
③ add the \(K\): last 2 digits of the year
④ the leap year term for \(K\), \(\left\lfloor K \div 4 \right\rfloor\)
⑤ and the leap year term for the century, \(\left\lfloor J \div 4 \right\rfloor\)
⑥ subtract twice the first 2 digits \(J\)
⑦ find the remainder after dividing by \(7\): days in a week
⑧ and you get the \(h\): weekday number (0 = Saturday, 1 = Sunday, 2 = Monday, …, 6 = Friday)
Quick example
For July 4, 2026, the day is \(q = 4\), the month is \(m = 7\), the last 2 digits of the year are \(K = 26\) and the first 2 digits are \(J = 20\), so
weekday number (0 = Saturday) \(=\) \((\) day (4) \(+\) month term (20) \(+\) last 2 digits (26) \(+\) term for \(K\) (6) \(+\) term for the century (5) \(-\) twice the first 2 digits (40) \()\) \(\bmod\) days in a week (7)
\(\left\lfloor 13 \times (7+1) \div 5 \right\rfloor = \lfloor 20.8 \rfloor = 20,\quad \lfloor 26 \div 4 \rfloor = 6,\quad \lfloor 20 \div 4 \rfloor = 5\)
\(4 + 20 + 26 + 6 + 5 - 40 = 21\)
\(21 \bmod 7 = 0\)
Key idea
- January and February are treated as months 13 and 14 of the year before. For January 15, 2026, for example, \(m = 13\) and the year counts as 2025, so \(K = 25\) and \(J = 20\). - The answer \(h\) matches the weekdays like this: 0 = Saturday, 1 = Sunday, 2 = Monday, 3 = Tuesday, 4 = Wednesday, 5 = Thursday, 6 = Friday. Note that 0 is Saturday, not Sunday. - The month term \(13(m+1) \div 5\) is a clever trick that was found to absorb the uneven month lengths (31 days, 30 days, 28 days and so on). - When you work it out on a calculator or in a program, the part in parentheses can be negative because of \(-2J\). If the remainder comes out negative, add 7 until it is between 0 and 6.
Which occurrence of the weekday it is (\(n\)th in the year)
Standard notation (the usual math form)
\(n\) \(=\) \(\left\lfloor \dfrac{d - 1}{7} \right\rfloor\) \(+\) \(1\)
In words (symbols replaced with words)
③ \(n\): occurrence in the year \(=\) ① times the same weekday has already come (day of the year \(d\)) \(+\) ② \(1\): the day itself
The formula in words
① Take the times the same weekday has already come, \(\left\lfloor (d-1) \div 7 \right\rfloor\) (subtract 1 from the day of the year \(d\), divide by 7 and drop the decimal part)
② add \(1\): the day itself
③ and you get the \(n\): occurrence in the year
Quick example
Saturday, July 4, 2026 is day 185 of the year, so which Saturday of the year it is comes from
occurrence in the year (27th) \(=\) Saturdays that have already come (26) \(+\) the day itself (1)
\(\left\lfloor \dfrac{185 - 1}{7} \right\rfloor = \lfloor 26.28\cdots \rfloor = 26\)
\(26 + 1 = 27\)
Key idea
The same weekday comes exactly every 7 days. So if you count how many full weeks fit in the \(d - 1\) days before the date, you know how many times that weekday came earlier in the year. Add 1 for the day itself, and you get \(n\), its place among the same weekdays of that year. So July 4, 2026 is the 27th Saturday of 2026.
How many times a weekday comes in a year (52 or 53)
Standard notation (the usual math form)
\(365\) \(=\) \(7\) \(\times\) \(52\) \(+\) \(1\)
In words (symbols replaced with words)
④ \(365\): days in a common year \(=\) ① \(7\): days in a week \(\times\) ② \(52\): number of weeks \(+\) ③ \(1\): extra day
The formula in words
① Take \(7\): days in a week
② multiply by the \(52\): number of weeks to get 364 days
③ add the \(1\): extra day
④ and you get the \(365\): days in a common year (in a leap year there are 2 extra days, making 366)
Quick example
In 2026 (a common year), January 1 is a Thursday, so
days in 2026 (365) \(=\) days in a week (7) \(\times\) number of weeks (52) \(+\) extra day (a Thursday, like January 1)
\(7 \times 52 + 1 = 365\)
Key idea
A year is "52 weeks plus 1 extra day" (2 extra days in a leap year). Only the weekday of the extra day comes 53 times in the year, and the other weekdays come 52 times. The extra days are counted from the start of the year, so in a common year the weekday of January 1 comes 53 times, and in a leap year the weekdays of January 1 and January 2 do. In 2026, only Thursday comes 53 times, and the other weekdays, including Saturday, come 52 times. Also, if a date is day \(d\) of the year, the days left until New Year's Eve are "days in that year − \(d\)" (for July 4, 2026, \(365 - 185 = 180\) days).
The days of the week repeat in a 7-day cycle. The weekday of any date can be calculated with "the remainder after dividing by 7", as in Zeller's congruence, and dividing the day of the year by 7 tells you which occurrence of that weekday it is.

Symbols and terms

Symbols

\(h\) h The weekday number that Zeller's congruence gives: 0 = Saturday, 1 = Sunday, 2 = Monday, …, 6 = Friday.
\(q\) q The day of the month (the 4 in "July 4"). Zeller's congruence traditionally uses this letter for the day.
\(m\) m The month, from the first letter of "month". January and February are treated as months 13 and 14 of the year before, so \(m = 13\) and \(m = 14\).
\(K\) K (capital) The last 2 digits of the year. For 2026, \(K = 26\) (remember that January and February count as the year before).
\(J\) J (capital) The first 2 digits of the year (the century part). For 2026, \(J = 20\).
\(\lfloor x \rfloor\) floor of x The floor function: the largest whole number that is not more than \(x\). For numbers 0 or greater, it is the same as dropping the decimal part, so \(\lfloor 20.8 \rfloor = 20\) (all the numbers rounded down in this formula are 0 or greater).
\(\bmod\) mod The symbol for the remainder of a division, used as in \(21 \bmod 7 = 0\) (21 divided by 7 leaves a remainder of 0).
\(d\) d The day of the year: which day it is, counting from January 1 of that year. For July 4, 2026, \(d = 185\).
\(n\) n Which occurrence of that weekday the date is in the year. July 4, 2026 is the 27th Saturday of the year.

Terms

Zeller's congruence A formula that calculates the day of the week directly from a date, created by the 19th-century German mathematician Christian Zeller. Without looking at a single calendar, it finds the weekday with only multiplication and "the remainder after dividing by 7".
Gregorian calendar The calendar used around the world today. Pope Gregory XIII introduced it on October 15, 1582. Britain and its American colonies adopted it in 1752, when Wednesday, September 2 was followed by Thursday, September 14.
proleptic Gregorian calendar The Gregorian calendar rules applied backward to dates before it was introduced (October 15, 1582). The international standard ISO 8601 and most computer date systems, including this calculator, use it. Its dates and weekdays can differ from the calendar that was actually used in history, such as the Julian calendar.
Julian calendar The calendar used before the Gregorian calendar, set up by Julius Caesar in 45 BC. It made every fourth year a leap year without exception, so it slowly drifted away from the seasons and was replaced by the Gregorian calendar to fix this. American dates before 1752 are often Julian "Old Style" dates - George Washington was born on February 11, 1731 (Old Style), which is February 22, 1732 in the Gregorian calendar.
leap year A year with a February 29 (366 days). It usually comes every 4 years, but years divisible by 100 are common years unless they are divisible by 400 (2000 was a leap year, 1900 and 2100 are not).
day of the year Which day of the year a date is, counting from January 1 (sometimes loosely called the "Julian day" or "ordinal date"). For example, March 1 is day 60 in a common year and day 61 in a leap year.
weekly cycle The days of the week repeat every 7 days. Two dates that are a multiple of 7 days apart always fall on the same weekday.
Doomsday rule A method for finding the weekday of a date in your head, created by the mathematician John Conway. In any given year, some easy-to-remember dates all fall on the same weekday (the "doomsday"), such as 4/4, 6/6, 8/8, 10/10, 12/12 and the last day of February. For 2026 the doomsday is Saturday, which is why July 4, 2026 is a Saturday too.

Good to know before you start

Here is what helps you use the calculation on this page with real understanding, not just by pressing the button.
If you get stuck, going back over these topics is the quickest way forward.

Division with remainders (Grade 4)
  • Being able to find the quotient and remainder, as in 100 ÷ 7 = 14 remainder 2
  • Seeing that for anything that repeats every 7 days, where you are in the cycle is set by the remainder after dividing by 7
How the calendar works (Grades 3–4)
  • Knowing that a week has 7 days and the same weekday comes every 7 days
  • Knowing that months have 28 to 31 days, depending on the month
  • Knowing that about every 4 years there is a year with a February 29 (a leap year)
2-digit multiplication and rounding down (Grades 4–5)
  • Being able to multiply, as in 13 × 8 = 104
  • Being able to drop the decimal part of 104 ÷ 5 = 20.8 to get 20
Positive and negative numbers (Grades 6–7)
  • Being able to keep adding and subtracting when a result in Zeller's congruence becomes negative
  • Being able to add 7 to a negative number as many times as needed to bring it into the range 0 to 6

How to calculate it in Excel

Copy the whole table below and paste it into cell A1 in Excel. It works as is.
Table to find the day of the week
Date to check 2026-07-04
Day of the week =TEXT(B1,"dddd")
Table to find the weekday number (WEEKDAY function)
Date to check 2026-07-04
Weekday number (1 = Sunday to 7 = Saturday) =WEEKDAY(B1)
Table for the day of the year and the days left
Date to check 2026-07-04
Day of the year =B1-DATE(YEAR(B1),1,1)+1
Days in the year =DATE(YEAR(B1),12,31)-DATE(YEAR(B1),1,1)+1
Days left =B3-B2
Table for which occurrence of the weekday it is
Date to check 2026-07-04
Day of the year =B1-DATE(YEAR(B1),1,1)+1
Occurrence n =INT((B2-1)/7)+1
In the first table, =TEXT(B1,"dddd") turns a date into the name of its weekday, such as "Saturday" ("ddd" gives the short form, "Sat"). Type the date in the form 2026-07-04, which Excel reads as a date whatever your regional settings are. In the second table, the WEEKDAY function returns the weekday as a number (1 = Sunday to 7 = Saturday). Note that these numbers do not match the numbers in Zeller's congruence.
The answers in the third and fourth tables are: day of the year 185, days in the year 365, days left 180, and occurrence 27. If a subtraction shows up as a date such as "7/3/1900", change the cell format to "General".
Excel dates only work from January 1, 1900 onward. For earlier dates, use the calculator on this page or Python.

How to calculate it in Google Sheets

Copy the whole table below and paste it into cell A1 in Google Sheets. It works as is.
Table to find the day of the week
Date to check 2026-07-04
Day of the week =TEXT(B1,"dddd")
Table to find the weekday number (WEEKDAY function)
Date to check 2026-07-04
Weekday number (1 = Sunday to 7 = Saturday) =WEEKDAY(B1)
Table for the day of the year and the days left
Date to check 2026-07-04
Day of the year =B1-DATE(YEAR(B1),1,1)+1
Days in the year =DATE(YEAR(B1),12,31)-DATE(YEAR(B1),1,1)+1
Days left =B3-B2
Table for which occurrence of the weekday it is
Date to check 2026-07-04
Day of the year =B1-DATE(YEAR(B1),1,1)+1
Occurrence n =INT((B2-1)/7)+1
In Google Sheets, the TEXT, WEEKDAY, DATE and INT formulas work exactly as in Excel. Copy the whole table, paste it into cell A1, and replace the date in B1 with your own.
If a subtraction shows up as a date, change it to a number with Format > Number > Number in the menu.

How to calculate it in Python

import datetime

year, month, day = 2026, 7, 4  # the date to check

# --- Method 1: use the standard datetime library ---
target_date = datetime.date(year, month, day)
weekday_names = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
weekday_name = weekday_names[target_date.weekday()]
print(f"{target_date:%B} {day}, {year} falls on a {weekday_name}")

day_of_year = target_date.timetuple().tm_yday                       # day of the year
days_in_year = datetime.date(year, 12, 31).timetuple().tm_yday     # days in that year
print(f"Day {day_of_year} of {days_in_year}, with {days_in_year - day_of_year} days left in the year")

nth = (day_of_year - 1) // 7 + 1                                   # which occurrence of the weekday
print(f"It is {weekday_name} #{nth} of the year")

# --- Method 2: use Zeller's congruence ---
q, m, y = day, month, year
if m <= 2:  # January and February count as months 13 and 14 of the year before
    m += 12
    y -= 1
K, J = y % 100, y // 100
h = (q + 13 * (m + 1) // 5 + K + K // 4 + J // 4 - 2 * J) % 7
zeller_names = ['Saturday', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday']
print(f"Zeller's congruence also gives {zeller_names[h]}")
Runs with the standard library only. In method 1, datetime gives the weekday with weekday() (0 = Monday to 6 = Sunday). "//" is the whole-number part of a division (rounded down), and "%" is the operator for the remainder of a division. Method 2 is Zeller's congruence from the formula card, written as it is. In Python, "%" always gives an answer of 0 or more, so no fix for negative numbers is needed. Change the date at the top and run it.

How to write it in LaTeX and other math languages (copy and paste)

Zeller's congruence (finding the day of the week from a date)
h = (q + ⌊13(m + 1)/5⌋ + K + ⌊K/4⌋ + ⌊J/4⌋ − 2J) mod 7
h = \left( q + \left\lfloor \frac{13(m+1)}{5} \right\rfloor + K + \left\lfloor \frac{K}{4} \right\rfloor + \left\lfloor \frac{J}{4} \right\rfloor - 2J \right) \bmod 7
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>h</mi><mo>=</mo>
    <mrow>
      <mo>(</mo>
      <mi>q</mi><mo>+</mo>
      <mrow><mo>&#x230A;</mo><mfrac><mrow><mn>13</mn><mo>(</mo><mi>m</mi><mo>+</mo><mn>1</mn><mo>)</mo></mrow><mn>5</mn></mfrac><mo>&#x230B;</mo></mrow>
      <mo>+</mo><mi>K</mi>
      <mo>+</mo><mrow><mo>&#x230A;</mo><mfrac><mi>K</mi><mn>4</mn></mfrac><mo>&#x230B;</mo></mrow>
      <mo>+</mo><mrow><mo>&#x230A;</mo><mfrac><mi>J</mi><mn>4</mn></mfrac><mo>&#x230B;</mo></mrow>
      <mo>&#x2212;</mo><mn>2</mn><mo>&#x2062;</mo><mi>J</mi>
      <mo>)</mo>
    </mrow>
    <mspace width="0.3em"/><mo>mod</mo><mspace width="0.3em"/><mn>7</mn>
  </mrow>
</math>
h = (q + floor(13(m + 1)/5) + K + floor(K/4) + floor(J/4) - 2J) mod 7
h = Mod[q + Floor[13 (m + 1)/5] + K + Floor[K/4] + Floor[J/4] - 2 J, 7]
h := (q + floor(13*(m + 1)/5) + K + floor(K/4) + floor(J/4) - 2*J) mod 7;
h = mod(q + floor(13*(m + 1)/5) + K + floor(K/4) + floor(J/4) - 2*J, 7);
h = (q + ⌊13(m + 1)/5⌋ + K + ⌊K/4⌋ + ⌊J/4⌋ - 2J) mod 7
Which occurrence of the weekday it is (\(n\)th in the year)
n = ⌊(d − 1)/7⌋ + 1
n = \left\lfloor \frac{d - 1}{7} \right\rfloor + 1
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mi>n</mi><mo>=</mo>
    <mrow><mo>&#x230A;</mo><mfrac><mrow><mi>d</mi><mo>&#x2212;</mo><mn>1</mn></mrow><mn>7</mn></mfrac><mo>&#x230B;</mo></mrow>
    <mo>+</mo><mn>1</mn>
  </mrow>
</math>
n = floor((d - 1)/7) + 1
n = Floor[(d - 1)/7] + 1
n := floor((d - 1)/7) + 1;
n = floor((d - 1)/7) + 1;
n = ⌊(d - 1)/7⌋ + 1
How many times a weekday comes in a year (52 or 53)
365 = 7 × 52 + 1,  366 = 7 × 52 + 2
365 = 7 \times 52 + 1, \quad 366 = 7 \times 52 + 2
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mrow>
    <mn>365</mn><mo>=</mo>
    <mn>7</mn><mo>&#xD7;</mo><mn>52</mn><mo>+</mo><mn>1</mn>
    <mo>,</mo><mspace width="0.7em"/>
    <mn>366</mn><mo>=</mo>
    <mn>7</mn><mo>&#xD7;</mo><mn>52</mn><mo>+</mo><mn>2</mn>
  </mrow>
</math>
365 = 7 xx 52 + 1, 366 = 7 xx 52 + 2
QuotientRemainder[365, 7]
iquo(365, 7); irem(365, 7);
q = floor(365/7); r = mod(365, 7);
365 = 7 × 52 + 1

How to have ChatGPT  do the calculation

You are a date calculation assistant. Do the following calculation by actually running Python code, and base your answer only on the numbers from the execution result (do not answer by mental math or guessing).

For July 4, 2026, find the following:
1. The day of the week
2. Which day of the year it is, and how many days are left until New Year's Eve
3. Which occurrence of that weekday it is in the year (and how many times that weekday comes in the whole year)

Show the code you used and the numbers from the execution result.

How to Use
  1. 1
    Enter your numbers
    Type the numbers you want to calculate with into the input fields
  2. 2
    Calculate
    Press the "Calculate" button
  3. 3
    Check the result
    The result appears on the spot. The same page also explains the idea behind the calculation and the formula
  DataChef Features
Easy and Free
Unlimited conversions for free.
No technical knowledge required.
Intuitive and user-friendly operation.
No Registration Required
Available immediately after access.
Can be used without registering personal information.
Safe and Secure
Fully SSL encrypted communication.
Automatic file deletion by clicking "download".
Fast
High-speed site access
and rapid file conversion.
No Watermark
No watermark.
No attribution required.
Commercial Use Available
Free for commercial use.
No need to contact us for commercial use permission.