요일 계산
특정 날짜의 요일을 확인
비우면 오늘 날짜가 기준이 됩니다.Left blank, today's date is used.
요일
Day of week
-
날짜를 입력해 주세요.
Enter a date.
양수는 N일 후, 음수는 N일 전을 계산합니다.Positive counts days after; negative counts days before.
결과 날짜
Resulting date
-
요일 계산기란?
과거·미래의 특정 날짜가 무슨 요일인지 확인하고, 오늘(또는 지정한 기준일)로부터 N일 후 혹은 N일 전이 몇 월 며칠 무슨 요일인지도 함께 계산합니다. 약속·기념일·마감일 계획에 유용합니다.
계산 방법
입력한 날짜를 UTC 자정 기준으로 정규화한 뒤 자바스크립트 Date.getDay()로 요일 인덱스(0=일요일 ~ 6=토요일)를 구해 한국어 요일명으로 변환합니다.
N일 후/전은 기준일에 밀리초 단위로 N×24시간을 더하거나 빼서 결과 날짜를 구합니다.
요일 인덱스 표
| 인덱스 | 요일 |
|---|---|
| 0 | 일요일 |
| 1 | 월요일 |
| 2 | 화요일 |
| 3 | 수요일 |
| 4 | 목요일 |
| 5 | 금요일 |
| 6 | 토요일 |
계산기 없이도 요일을 알아내는 원리 — 나머지(mod 7) 연산
요일은 7일마다 똑같이 반복되므로, 기준이 되는 날짜의 요일을 하나만 알고 있으면 두 날짜 사이의 일수를 7로 나눈 나머지만으로 다른 날짜의 요일을 구할 수 있습니다. 역사적으로 널리 쓰인 젤러의 공식(Zeller's congruence)도 결국 이 나머지 연산을 월·일·세기 단위로 정교하게 쪼갠 것일 뿐, 핵심 원리는 나머지 연산과 같습니다.
예를 들어 2026년 1월 1일이 목요일이라는 사실 하나만 알면, 2026년 7월 17일까지는 197일이 지났으므로 197 ÷ 7 = 28주 나머지 1로 계산됩니다. 목요일에서 나머지 1만큼 뒤로 밀면 금요일이 되는데, 실제로 2026년 7월 17일은 금요일이 맞습니다. 이 계산기도 내부적으로 자바스크립트 Date 객체가 1970년 1월 1일(목요일)을 기준으로 경과 일수를 세고 7로 나눈 나머지로 요일을 판정하는 것과 같은 원리를 씁니다.
같은 날짜인데 왜 요일이 해마다 바뀔까요?
1년은 정확히 52주가 아니라 52주+1일(평년, 365일) 또는 52주+2일(윤년, 366일)입니다. 그래서 생일이나 기념일처럼 매년 같은 날짜를 기준으로 봐도, 그사이에 평년만 지났다면 요일이 1칸, 2월 29일이 포함된 윤년을 지났다면 2칸 밀립니다.
실제 사례로 확인해 보면, 2023년 1월 1일은 일요일이었고 2024년 1월 1일은 월요일로 1칸 밀렸습니다(2023년은 평년). 그런데 2025년 1월 1일은 수요일로 2칸 밀렸는데, 이는 2024년이 2월 29일을 포함한 윤년(366일)이었기 때문입니다. 2025년은 다시 평년이었던 만큼 2026년 1월 1일은 목요일로 1칸만 밀렸습니다. 이처럼 생일이 다시 같은 요일에 오려면, 그사이 지나간 윤년의 수를 포함한 총 일수가 정확히 7의 배수가 되는 해까지 기다려야 합니다.
What is a weekday finder?
This tool finds the day of the week for any past or future date, and also calculates the date and weekday N days after or before a reference date — handy for planning appointments, anniversaries, and deadlines.
How it is calculated
The input date is normalized to UTC midnight, then JavaScript's Date.getDay() returns a weekday index (0=Sunday to 6=Saturday), which is mapped to its name.
Weekday index table
| Index | Weekday |
|---|---|
| 0 | Sunday |
| 1 | Monday |
| 2 | Tuesday |
| 3 | Wednesday |
| 4 | Thursday |
| 5 | Friday |
| 6 | Saturday |
Finding a weekday without a calculator — the modulo-7 principle
Weekdays repeat every 7 days, so if you know the weekday of just one reference date, you can find any other date's weekday from the remainder of the day-count difference divided by 7. Zeller's congruence, the classic historical formula, is really the same remainder logic broken down by month, day, and century.
For example, January 1, 2026 is a Thursday. There are 197 days until July 17, 2026, and 197 ÷ 7 = 28 weeks with a remainder of 1 — shifting one day past Thursday lands on Friday, which matches the actual result. This calculator applies the same idea internally: JavaScript's Date object counts elapsed days from January 1, 1970 (a Thursday) and takes the remainder mod 7.
Why does the weekday for the same date shift every year?
A year isn't exactly 52 weeks — it's 52 weeks + 1 day in a common year (365 days) or 52 weeks + 2 days in a leap year (366 days). So a fixed date like a birthday shifts by one weekday across a common year, or two weekdays across a year that includes February 29.
In practice, January 1, 2023 was a Sunday, and January 1, 2024 was a Monday — a one-day shift, since 2023 was a common year. But January 1, 2025 was a Wednesday, a two-day shift, because 2024 was a leap year with 366 days. 2025 was a common year again, so January 1, 2026 shifted only one day to Thursday.