날짜·시간

날짜 간 차이 계산

두 날짜 사이의 일수를 계산

두 날짜 사이 일수

Days between the two dates

0days

주수Weeks0 wk
개월수(근사)Months (approx.)0 개월mo

시작일과 종료일을 입력해 주세요.

Enter a start and end date.

날짜 차이 계산이란?

두 날짜 사이의 일수·주수·개월수를 계산해 여행 일정, 계약 기간, D-day, 기념일 간격 등을 빠르게 확인할 수 있는 도구입니다. 시작일과 종료일 자체를 기간에 포함할지 여부를 토글로 선택할 수 있습니다.

계산 방법

일수 = (종료일 − 시작일) ÷ 24시간, 양끝 포함 시 결과에 1일을 더합니다.

주수 = 일수 ÷ 7, 개월수(근사) = 일수 ÷ 30.44로 계산합니다.

모든 날짜는 UTC 자정으로 정규화해 계산하므로 서머타임·시간대 오차 없이 정확한 일수를 얻습니다.

양끝 포함 예시
2026-01-01 ~ 2026-01-05 계산 예시
방식결과
양끝 미포함(기본)4일
양끝 포함5일
"만 나이식 셈" vs "헤아림 셈" — D-day가 하루 차이 나는 이유

날짜 차이를 셀 때는 크게 두 가지 방식이 있습니다. 만 나이식 셈(배타적)은 시작일과 종료일 사이에 지나간 시간만 세는 방식이고, 헤아림 셈(포함적)은 시작일 자체를 1일째로 잡고 세는 방식입니다. 같은 두 날짜라도 어느 쪽을 쓰느냐에 따라 결과가 1일 차이 납니다.

대표적인 예가 D-day 표기입니다. 행사 당일을 'D-day'라 부르고 그 전날을 'D-1'이라 부르는 관행 자체가 헤아림 셈에 가깝습니다. 반면 이 계산기에서 시작일 2026-01-01과 종료일 2026-01-05를 양끝 미포함(기본값)으로 계산하면 4일이 나오는데, 이는 '1일부터 5일까지 며칠째인가'를 헤아린 값이 아니라 두 시점 사이의 순수 경과 시간(24시간×4)만 잰 것입니다. 반대로 '1월 1일이 1일째, 1월 5일이 몇 일째인가'로 헤아리면 5일째가 되며, 이는 양끝 포함 토글을 켰을 때의 결과와 같습니다.

근속일수·복약일수를 셀 때는 어느 쪽을 써야 할까?

실무에서는 상황에 따라 관행이 다릅니다. 근속일수는 보통 입사일을 근무 1일째로 잡는 헤아림(포함적) 방식이 일반적입니다. 2026-01-01에 입사해 2026-01-05까지 근무했다면 근속일수는 4일이 아니라 5일로 세는 경우가 많습니다. 복약일수도 마찬가지로, 처방받아 처음 복용한 날을 1일째로 잡는 것이 일반적인 관행입니다.

반면 이자 계산 기간이나 임대차 계약의 정확한 사용 일수처럼 시간의 순수한 경과분만 필요한 경우에는 양끝 중 한쪽만 포함하는 배타적 방식을 씁니다. 이 계산기의 양끝 날짜 포함 체크박스를 상황에 맞게 켜고 끄면 두 관행 모두 정확히 계산할 수 있습니다.

What is a date difference calculator?

This tool calculates the number of days, weeks, and months between two dates — useful for trip planning, contract periods, D-day countdowns, and anniversaries. You can toggle whether the start and end dates themselves are counted.

How it is calculated

Days = (end date − start date) ÷ 24h; add 1 day if both endpoints are included.

Weeks = days ÷ 7, Months (approx.) = days ÷ 30.44.

Note: all dates are normalized to UTC midnight to avoid timezone/DST drift.
Inclusive example
Example: 2026-01-01 to 2026-01-05
ModeResult
Exclusive (default)4 days
Inclusive5 days
"Exclusive" vs "inclusive" counting — why D-day can be off by one day

There are two common ways to count the gap between dates. Exclusive counting measures only the elapsed time between the start and end points, while inclusive counting treats the start date itself as day one. The same two dates can produce results one day apart depending on which convention is used.

D-day notation is a familiar example: calling the event date itself "D-day" and the day before "D-1" follows inclusive-style counting. In this calculator, a start date of 2026-01-01 and an end date of 2026-01-05 with the inclusive toggle off (the default) gives 4 days — the pure elapsed time (24h × 4) between the two points, not "which day number is January 5." Counting inclusively instead — "January 1 is day 1, so what day number is January 5?" — gives day 5, matching the result when the inclusive toggle is switched on.

Which convention to use for tenure days or days of medication

Real-world conventions vary by context. Tenure (days employed) is usually counted inclusively, treating the start date as day one: starting on 2026-01-01 and working through 2026-01-05 is commonly counted as 5 days, not 4. Days of medication follows the same logic — the first day a dose is taken usually counts as day one.

By contrast, interest-accrual periods or the exact number of days a lease was used typically call for exclusive counting, where only one endpoint is included. Toggling this calculator's inclusive checkbox on or off lets you match either convention precisely.

기간을 세는 방식이 결과를 바꿉니다

두 날짜 사이가 며칠인지는 단순해 보이지만, 시작일을 세느냐 마느냐에 따라 하루가 달라집니다. 계약 기간이나 법정 기한처럼 하루가 중요한 계산에서는 이 차이가 실제 결과를 뒤집습니다.

초일불산입 원칙

민법은 기간을 일·주·월·연으로 정한 때에는 첫날을 넣지 않고 다음 날부터 센다고 정합니다. 이를 초일불산입이라고 합니다. 3월 1일에 계약하고 기간을 7일로 정했다면 3월 2일부터 세어 3월 8일에 끝납니다.

예외도 있습니다. 기간이 오전 0시부터 시작하는 경우에는 첫날을 넣습니다. 나이 계산도 출생일을 넣어 세므로 초일불산입이 적용되지 않습니다.

기간의 마지막 날이 토요일이나 공휴일이면 그다음 첫 근무일에 끝나는 것으로 봅니다. 서류 제출 기한을 따질 때 자주 걸리는 지점입니다.

월·연 단위 기간의 끝

월이나 연으로 정한 기간은 날짜를 세지 않고 달력을 따라갑니다. 1월 31일부터 1개월이면 2월 28일(윤년은 29일)에 끝납니다. 해당하는 날이 없으면 그 달의 마지막 날로 봅니다.

임대차나 근로계약처럼 월 단위로 기간을 정하는 계약에서 이 규칙이 자주 문제가 됩니다. 실제 일수는 달마다 다르지만 기간의 만료일은 달력 기준으로 정해집니다.

영업일과 달력일

달력일은 주말과 공휴일을 포함해 그냥 셉니다. 영업일은 토요일·일요일·공휴일을 빼고 셉니다. 같은 '10일'이어도 영업일 기준이면 실제로는 2주가 걸립니다.

행정기관의 처리 기한은 대체로 영업일 기준이고, 계약서에 '일'이라고만 적혀 있으면 달력일로 봅니다. 분쟁을 줄이려면 계약서에 어느 쪽인지 명시하는 편이 낫습니다.

국내 공휴일은 해마다 대체공휴일 지정에 따라 달라집니다. 장기 기한을 계산할 때는 해당 연도의 관공서 공휴일 규정을 확인해야 합니다.

계산 근거

  • 기간의 기산점 — 민법 제157조
  • 월·연 단위 기간의 만료 — 민법 제160조
  • 기간 말일의 공휴일 처리 — 민법 제161조
  • 관공서 공휴일 — 관공서의 공휴일에 관한 규정

How you count a period changes the answer

The gap between two dates looks simple, but whether the first day counts shifts the result by one. Where a single day matters — contract terms, statutory deadlines — that shift changes the outcome.

Excluding the first day

Under the Civil Act, a period set in days, weeks, months or years starts counting from the following day. A seven-day term agreed on 1 March runs from 2 March and ends on 8 March.

There are exceptions: a period beginning at midnight includes the first day, and age counting includes the date of birth.

If the final day falls on a Saturday or public holiday, the period ends on the next working day — a common trap for filing deadlines.

Periods set in months or years

Periods in months or years follow the calendar rather than a day count. One month from 31 January ends on 28 February, or 29 in a leap year; where no matching date exists, the last day of the month applies.

This regularly matters in leases and employment contracts set in months: the number of actual days varies, but expiry is fixed by the calendar.

Business days and calendar days

Calendar days count weekends and holidays; business days exclude Saturdays, Sundays and public holidays. The same 'ten days' can mean two real weeks under the latter.

Administrative processing periods are generally business days, while a contract saying only 'days' is read as calendar days — worth stating explicitly to avoid dispute.

Korean public holidays shift year to year with substitute-holiday designations, so long deadlines need the relevant year's schedule.

Legal basis

  • Start of a period — Civil Act art. 157
  • Expiry of monthly and yearly periods — Civil Act art. 160
  • Final day falling on a holiday — Civil Act art. 161
  • Public holidays — Regulations on Public Holidays for Government Offices
두 날짜 사이 일수는 어떻게 계산하나요?
종료일에서 시작일을 뺀 뒤 하루(24시간)로 나누어 계산합니다. 두 날짜 모두 UTC 자정 기준으로 정규화해 시간대·서머타임 오차 없이 정확한 일수를 구합니다.
양끝 포함이란 무엇인가요?
양끝 포함은 시작일과 종료일 자체도 기간에 포함해 계산하는 방식으로, 일반적인 날짜 차이 계산 결과에 1일을 더합니다. 여행 숙박일수나 계약 기간 등을 셀 때 자주 사용됩니다.
개월수는 어떻게 근사하나요?
이 계산기의 개월수는 총 일수를 30.44일(1년 365.25일 ÷ 12)로 나눈 근사값입니다. 정확한 달력상 개월수와 차이가 날 수 있으며, 기간이 길수록 오차가 며칠 단위로 커질 수 있습니다.
D-day처럼 당일을 1일째로 세려면 어떻게 하나요?
양끝 날짜 포함 체크박스를 켜면 시작일 자체를 1일째로 헤아리는 방식으로 계산됩니다. D-day 표기나 근속일수처럼 시작일을 포함해 세는 관행에 맞는 결과를 얻을 수 있습니다.
근속일수나 복약일수는 양끝 포함을 켜야 하나요?
일반적인 관행상 그렇습니다. 근속일수는 입사일을, 복약일수는 첫 복용일을 1일째로 세는 경우가 많으므로 양끝 포함 토글을 켜는 것이 실무 관행과 일치합니다. 다만 회사·기관마다 규정이 다를 수 있으니 정확한 기준이 필요하다면 해당 규정을 확인하세요.
How is the day count calculated?
Subtract the start date from the end date and divide by 24 hours. Both dates are normalized to UTC midnight to avoid timezone or DST errors.
What does "inclusive" mean?
Inclusive counts both the start and end dates as part of the period, adding one day to the normal difference. It's often used for counting nights of a trip or contract duration.
How are months approximated?
Months here are the total days divided by 30.44 (365.25 days/year ÷ 12). This is an approximation: it can differ from exact calendar months, and the gap can grow to several days over longer spans.
How do I count the start date as day one, like D-day notation?
Turn on the inclusive checkbox to count the start date itself as day one. This matches conventions like D-day notation or tenure counting, where the starting day is included.
Should I turn on inclusive counting for tenure or days of medication?
Generally yes. Tenure is usually counted from the start (hire) date, and days of medication from the first dose day, so enabling the inclusive toggle matches common practice. Since rules can vary by organization, check the specific policy if precision matters.