日付・時間・暦項目 № 04.03

曜日計算機(指定日の曜日特定) - 無料オンライン計算ツール

過去や未来の任意の日付が何曜日だったか・何曜日になるかを瞬時に判定。うるう年にも完全対応。

How is the day of the week calculated for any given date? Calculates the exact weekday, day of the year (ordinal date), ISO 8601 week number, and leap year status for any calendar date.

How is the day of the week calculated for any given date?

Finding the day of the week for a given date is a classical problem in calendar arithmetic. The most famous solution was published in the 1880s by the German mathematician and clergyman Christian Zeller, known as 'Zeller's Congruence' - an algorithm that uses modular arithmetic on the month, day, year, and century to produce a value whose remainder modulo 7 yields the day of the week.

Modern computers and browsers use equivalent calendar arithmetic internally that produces the same correct result. Alongside the day of the week, this tool displays three additional metrics: the Day of the Year (out of 365 or 366), the ISO week number, and whether the year is a leap year.

Mathematical Framework (Zeller's Congruence, Leap Years & ISO Standard)

Classical Reference Method: Zeller's Congruence

Zeller's Congruence formula (for the Gregorian calendar):

h = (q + ⌊13(m+1)/5⌋ + K + ⌊K/4⌋ + ⌊J/4⌋ - 2J) mod 7

Where h is the day of the week (0=Saturday, 1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday, 5=Thursday, 6=Friday).

q:Day of the month (1 to 31)
m:Month (March=3 ... December=12, January=13 and February=14 counted as months of the preceding year)
K:Year of the century (Year mod 100)
J:Zero-based century (⌊Year / 100⌋)

Leap Year Rule (Gregorian Calendar)

A year is a leap year if divisible by 4, except for century years, which must also be divisible by 400. Example: 2024 is a leap year; 1900 was not; 2000 was.

ISO 8601 Week Numbering

Weeks begin on Monday, and 'Week 1' is the week containing the first Thursday of the year - which is why dates in early January or late December sometimes belong to another ISO year's week count.

Source references: International Organization for Standardization - ISO 8601; Zeller, Christian (1882, 1885, 1886) - original publications on Zeller's Congruence.

Hand-Verified Worked Examples

ステップごとの計算例 1

Example 1: 15 August 1947 (India's Independence Day)

1
Day of the Week:This date fell on a Friday.
2
Day of the Year:227th day (out of 365, as 1947 was not a leap year).
3
Leap Year Check:1947 / 4 = 486.75 (not an integer) → not a leap year.
ステップごとの計算例 2

Example 2: 1 January 2000 (Turn of the Millennium / Y2K)

1
Day of the Week:This date fell on a Saturday.
2
Leap Year Check:2000 / 400 = 5 (integer) → divisible by 400, hence a leap year.
3
ISO Week Note:1 January is not always in ISO Week 1, depending on the position of the first Thursday of that year.
詳しい解説

Why ISO Week Numbers Confuse People - and Why It Matters

Most people assume 'Week 1' simply means the first week of January - but ISO 8601 defines it differently: Week 1 is the week that contains the first Thursday of the year. This means that if 1 January falls on a Friday, Saturday, or Sunday, it is actually counted as part of Week 52 or 53 of the previous year.

Similarly, the last days of December can belong to 'Week 1' of the following year. This standard is universally used in European business reporting, payroll systems, and industrial logistics.

Leap Year Evaluation Matrix (With Real-World Cases)

1900No
÷4: Yes
÷100: Yes
÷400: No
2000Yes
÷4: Yes
÷100: Yes
÷400: Yes
2024Yes
÷4: Yes
÷100: No
÷400: -
2026No
÷4: No
÷100: -
÷400: -
2100No (Future)
÷4: Yes
÷100: Yes
÷400: No
よくある質問(FAQ)

Frequently Asked Questions (FAQ)

How do you calculate the day of the week for any date without a calendar?

Mathematical formulas like Zeller's Congruence use modular arithmetic. Modern computers and this calculator use equivalent calendar arithmetic to give you the exact result instantaneously.

Why isn't 1 January always in Week 1?

Under the ISO 8601 standard, Week 1 is the week containing the first Thursday of the year. If 1 January falls on a Friday, Saturday, or Sunday, it belongs to the final week of the prior year.

Does a leap year occur every 4 years?

Almost, but not universally. Century years (such as 1900 or 2100) are not leap years unless they are also divisible by 400 (such as 2000).

What is Day of the Year (ordinal date) used for?

It indicates which number day of 365 (or 366) a date is - commonly used in programming, financial accounting periods, and scientific data logging.

Verified Sources & Standards

Verification note: Calendar rules and formulas are verified against ISO 8601 and classical Zeller congruence publications. All external links open safely in a new tab.

関連する計算機

「曜日判定」とあわせてよく使われている計算ツール

全て見る 日付・時間・暦 →
期間算出№ 04.01

日付間隔・日数差計算機

開始日と終了日からその間の総日数、週数、月数、実日数を正確にカウント。スケジュール管理に最適。

Δt = Date₂ − Date₁ (days, weeks, months)計算機を開く
日付シフト№ 04.05

日付加減算・○日後○日前計算機

基準日から「○日後」「○週間後」「○日前」などの正確な該当日を計算。記念日や締切の確認に。

Target Date = Start Date ± (Y, M, W, D)計算機を開く
営業日№ 04.02

営業日・稼働日数計算機(平日カウント)

土日や週末を除外した正味の営業日数・稼働日数を計算。納期管理や業務計画の立案に便利。

W = Total Days − Weekend Days − Holidays計算機を開く

高精度計算・プライバシー100%保護

全ての計算はお使いのブラウザ上でIEEE 754倍精度演算により実行されます。入力したデータは外部サーバーに送信・保存されることは一切ありません。