Apollo 11 Moon landing
- Date
- 1969-07-20
- 요일
- Sunday
- ISO weekday number (Monday = 1)
- 7
- Zeller's h (Saturday = 0)
- 1
검증 출처: NASA mission records (Sunday 20 July 1969); Python date(1969,7,20).weekday() = 6 (Sunday)
Day of the week for any date, past or future: the weekday in the Gregorian calendar, worked through step by step with Zeller's congruence.
업데이트 검증한 예제: 5
Tue 29 Sep 2026 is a Tuesday — today.
m = 9, Y = 2026.
Floors round toward minus infinity, which keeps the formula valid for years before 1 AD.
h = 3 means Tuesday (0 = Saturday, 1 = Sunday, …, 6 = Friday).
1 January 1970 (N = 0) was a Thursday, ISO weekday 4.
Zeller's congruence, published in 1887, turns a date into a weekday with whole-number arithmetic. January and February count as months 13 and 14 of the previous year; the year is split into its century J and year of the century K; and q + ⌊13(m + 1)/5⌋ + K + ⌊K/4⌋ + ⌊J/4⌋ + 5J is divided by 7. The remainder h names the weekday, from 0 for Saturday to 6 for Friday. The result is cross-checked against a count of days from 1 January 1970, a Thursday.
People use it to find the weekday they were born on, the day a historical event fell on, or where a future deadline lands. Apollo 11 landed on the Moon on 20 July 1969, and the congruence gives h = 1: a Sunday.
Dates before 15 October 1582 follow the Gregorian rules extended backwards. Records from those years usually use the Julian calendar, which gives a different weekday for the same written date.
검증 출처: NASA mission records (Sunday 20 July 1969); Python date(1969,7,20).weekday() = 6 (Sunday)
검증 출처: Python 3.8: date(2000,2,29).weekday() = 1 (Tuesday); Zeller evaluated by hand with m = 14, Y = 1999
검증 출처: Inter gravissimas: Thursday 4 October 1582 (Julian) was followed by Friday 15 October 1582; Python date(1582,10,15).weekday() = 4
검증 출처: Python 3.8: date(1,1,1).weekday() = 0 (Monday, proleptic Gregorian)
Use John Conway's doomsday rule. In any year, 4 April, 6 June, 8 August, 10 October, 12 December, the last day of February, 9 May, 5 September, 11 July and 7 November share one weekday, the year's doomsday. In 2026 it is Saturday, so 12 December 2026 is a Saturday and 25 December, 13 days later, is a Friday.
No. A common year is 52 weeks and 1 day, so a date moves forward one weekday a year, or two when a 29 February comes between. A whole year's calendar usually repeats after 6, 11 or 28 years; 2026's is reused in 2037. The Gregorian calendar repeats exactly every 400 years, which are 146,097 days or 20,871 weeks.
It depends on the convention. ISO 8601 makes Monday day 1 and Sunday day 7, which is how the ISO weekday number here is counted. US calendars start on Sunday, and Excel's WEEKDAY function returns 1 for Sunday unless told otherwise. Zeller's own numbering starts at Saturday = 0, which is why the calculator shows it separately.
Nothing: the dates jumped, the weekdays did not. In Catholic countries Thursday 4 October 1582 in the Julian calendar was followed by Friday 15 October 1582 in the Gregorian calendar. Britain and its colonies changed in 1752, when Wednesday 2 September was followed by Thursday 14 September. For earlier dates, check which calendar a source uses before trusting a weekday.
정확도는 입력값과 계산 방법의 가정에 따라 달라집니다. 십진 연산은 유효숫자 50자리를 사용하지만, 추정값·수치해석 방법·원본 데이터의 정밀도는 더 낮을 수 있습니다. 표시값을 반올림해도 이러한 한계는 사라지지 않습니다. 독립적인 출처의 풀이와 대조한 계산 예시: 5. 예를 들어 “Apollo 11 Moon landing”은 NASA mission records (Sunday 20 July 1969); Python date(1969,7,20).weekday() = 6 (Sunday)와 대조해 확인합니다.
Chr. Zeller, “Kalender-Formeln”, Acta Mathematica 9 (1887), 131–136; Howard Hinnant — weekday_from_days.
이 계산기에는 독립적인 출처에서 답을 얻은 계산 예제가 5개 있습니다. 테스트 모음에서 실행되며 여기에서도 실행할 수 있습니다.
Week number for any date: ISO 8601 week and week-numbering year, US week number, day of the year, days left in the year and the quarter.
Leap year checker: whether a year has 366 days under the Gregorian rule, which test decides it, and the previous and next leap years.
Convert a Gregorian date to Hijri (Umm al-Qura and tabular), Hebrew, Persian, Indian national (Saka) and Julian dates, or a Julian date back.