← All tools/Calculators/Time & Date/Weekday Calculator
Weekday Calculator
Enter any date — past or future — and find which day of the week it falls on, with no lookup table.
Day of the week
15 August 1947 · ISO weekday 5
How it works
Zeller’s congruence (Gregorian calendar): h = (q + ⌊13(m+1)/5⌋ + K + ⌊K/4⌋ + ⌊J/4⌋ + 5J) mod 7 q = day of the month; m = month (March = 3 … January = 13, February = 14, of the previous year); K = year mod 100; J = ⌊year / 100⌋. h: 0 = Saturday, 1 = Sunday, 2 = Monday, 3 = Tuesday, 4 = Wednesday, 5 = Thursday, 6 = Friday.
15 August 1947: q = 15, m = 8, K = 47, J = 19. ⌊13 × 9 / 5⌋ = 23, ⌊47 / 4⌋ = 11, ⌊19 / 4⌋ = 4, 5 × 19 = 95. Sum = 15 + 23 + 47 + 11 + 4 + 95 = 195; 195 mod 7 = 6, and 6 means Friday — the day India became independent. It is the 227th day of 1947.
Cross-checked against the JavaScript Date calendar: 15 August 1947 is a Friday.
Frequently asked questions
Does it work for dates before 1900?
Yes, for any Gregorian calendar date. Zeller’s congruence is pure arithmetic, so 4 July 1776 gives Thursday and 1 January 1900 gives Monday. Dates before October 1582, when the Gregorian calendar began, need a different rule.
Why are January and February counted as months 13 and 14?
Because Zeller’s formula treats March as the first month of the year, so January and February belong to the previous year. A January 2000 date is computed as month 13 of 1999.
What is the ISO weekday number?
Monday is 1 and Sunday is 7, the ISO 8601 convention used in most of Europe and in spreadsheets. Friday is 5 and Saturday is 6.
What is the day of the year?
The date’s position in the year: 1 January is day 1 and 31 December is day 365, or 366 in a leap year. 15 August 1947 is day 227.
Tell us what you think
Loving this tool, or stuck on something? Tell us — it takes a minute.
We’ll only use your name and email to reply if needed. The tool and page are filled in for you.