📆 計算星期幾
Day of the Week Calculator
這個工具怎麼用、算得準嗎
How It Works & How Accurate It Is
點一下輸入框會跳出日曆,直接選日期,或手動鍵入 YYYY-MM-DD(例如 2025-07-04),按「查詢」或 Enter,就會顯示那天是星期幾。計算用的是標準格里曆(Gregorian)演算法,已完整處理閏年規則,從歷史到未來的日期都算得準——例如查 1969-07-20(阿波羅登月)會得到星期日。
Click the field to pick a date (or type YYYY-MM-DD) and hit Look Up. It uses standard Gregorian calendar logic with full leap-year handling, so any past or future date is accurate — July 20, 1969 (Apollo 11), for instance, returns Sunday.
提醒:1582 年 10 月 15 日之前世界尚未採用格里曆,該日之前的結果僅供參考。
民國年 ↔ 西元年快速對照
ROC Year ↔ Gregorian Year
台灣的證件、公文常用民國紀年,但本工具輸入的是西元日期。換算很簡單:西元 = 民國 + 1911(例如民國 113 年 = 2024 年)。常用年份對照如下:
| 民國 ROC | 100 | 105 | 110 | 113 | 114 | 115 | 120 |
|---|---|---|---|---|---|---|---|
| 西元 Gregorian | 2011 | 2016 | 2021 | 2024 | 2025 | 2026 | 2031 |
Taiwan's ROC calendar counts from 1912, so Gregorian year = ROC year + 1911. Convert first, then look the date up here.
不用工具也能推算:心算星期幾
Work It Out in Your Head
想不靠工具也能推算,可以用「基準日法」(Doomsday rule)。原理是:同一年裡有幾個日期一定落在同一個星期,記住它們就能快速往前後數。
- 記住每年的「基準日」:4/4、6/6、8/8、10/10、12/12(偶數月自己對自己),加上 5/9、9/5、7/11、11/7(口訣「上班九到五、超商七十一」),以及 3/14(π 日)、平年 2/28、閏年 2/29。這些日期在同一年都是同一個星期。
- 算出該年基準日是星期幾:2000–2099 年用公式
(2 + Y + ⌊Y÷4⌋) mod 7,Y 是年份後兩位;得數對應 0=日、1=一、2=二…6=六。 - 從最近的基準日往前後數:目標日和某個基準日相差幾天,星期就往後移幾天。
實例:2025 年 7 月 4 日是星期幾?Y=25,(2 + 25 + 6) mod 7 = 33 mod 7 = 5 → 2025 年基準日是星期五。7 月的基準日是 7/11(星期五),往前 7 天正好是 7/4,所以 2025-07-04 也是星期五,與工具結果一致。
The Doomsday rule: certain dates (4/4, 6/6, 8/8, 10/10, 12/12, 5/9, 9/5, 7/11, 11/7, 3/14, last of Feb) share one weekday each year. Find that weekday with (2 + Y + ⌊Y/4⌋) mod 7 for 2000–2099, then count from the nearest one. For 2025 it lands on Friday, so July 11 — and thus July 4 — is a Friday.
常見問題
Frequently Asked Questions
這個工具支援多遠的歷史或未來日期?
本工具採用格里曆演算法,理論上支援從西元1年到數千年後的任何日期。無論您查詢的是古羅馬時代的日期、近代歷史事件,還是幾十年後的特定日期,工具都能正確計算(注意:1582年10月15日之前,格里曆尚未普及,結果僅供參考)。
The tool uses Gregorian calendar logic and theoretically supports any date from year 1 onward. Whether it's a date from ancient history or centuries in the future, the calculation will be accurate. (Note: before October 15, 1582, the Gregorian calendar wasn't in use — results before that date are for reference only.)
計算星期幾的原理是什麼?
常用的演算法是「蔡勒公式」(Zeller's Congruence),它利用年、月、日的數學關係計算出該日期是一週中的第幾天。格里曆版的蔡勒公式還考慮了閏年規則(能被4整除但不被100整除,或能被400整除)。本工具後端使用標準 JavaScript Date 物件,確保計算的可靠性。
The standard method is Zeller's Congruence, which uses mathematical relationships between year, month, and day to determine the weekday. The Gregorian version incorporates leap year rules. This tool uses the standard JavaScript Date object internally for reliable, well-tested results.
民國年或農曆日期可以查詢嗎?
本工具以西元(格里曆)日期為輸入格式。若您要查詢民國年份,只需將民國年加上1911即可換算為西元年(例如民國113年 = 2024年)。農曆日期則需先轉換為對應的西元日期再查詢,轉換可參考本站的生日資訊計算器。
This tool accepts Gregorian (Western) calendar dates. For ROC (Taiwan) calendar years, add 1911 (e.g. ROC year 113 = 2024). For lunar dates, convert to the Gregorian equivalent first — our Birthday Calculator can help with lunar-to-Gregorian conversion.
一週從星期幾開始計算?
本工具顯示的是「該日期是一週七天中的哪一天」,並不涉及一週從哪天開始的定義。不同地區習慣不同:台灣通常以星期一為一週開始,歐美部分地區以星期日為開始。查詢結果直接顯示星期幾(一至日),不受此設定影響。
The tool simply tells you which day of the week a date falls on — it doesn't define "start of week." Taiwan typically considers Monday the first day of the week, while some Western countries use Sunday. The result just shows the weekday name regardless of this convention.
閏年對「查詢星期幾」有影響嗎?
有,但工具會自動處理。閏年多出的2月29日會使後續日期的星期數比非閏年多移動一天。例如某年3月1日若是星期五,若前一年是閏年,則該年3月1日可能是星期六(因為2月29日使天數多了一天)。本工具的演算法已完整納入閏年規則,無需使用者擔心。
Yes, but the tool handles it automatically. Leap year's extra February 29 shifts all subsequent dates in that year by one weekday compared to non-leap years. The tool's algorithm fully accounts for leap years, so you never need to worry about it.
日期輸入格式是什麼?可以手動輸入嗎?
點選輸入框後會彈出圖形日曆選擇器,直接用滑鼠或觸控選取日期最為方便。若需手動輸入,請使用 YYYY-MM-DD 格式(例如 2025-07-04)。輸入完成後按 Enter 或點「查詢」按鈕即可。
Clicking the input field opens a graphical calendar picker for the easiest selection. If you prefer to type manually, use YYYY-MM-DD format (e.g. 2025-07-04). Press Enter or click Look Up to get the result.
相關工具
Related Tools
小結
Summary
要查任意一天是星期幾,直接選日期最快;想理解背後原理,可用基準日法自己心算驗證。民國年記得先加 1911 換成西元再查。閏年與跨世紀的規則工具都已自動處理,不必手動推算。
Picking a date is the fastest way; the Doomsday rule lets you verify by hand. Convert ROC years to Gregorian (add 1911) first. Leap years and century rules are handled automatically.