Date Difference Calculator
Count the days, weeks, months, workdays and years between two dates
Count the days, weeks, months, workdays and years between two dates
The Date Difference Calculator turns two calendar dates into a full set of durations. Instead of doing mental arithmetic across month boundaries, you pick a start date and an end date and immediately get the number of days, the equivalent weeks plus leftover days, the approximate number of months, the approximate number of years, and the count of working days in between. Every result updates as soon as you change a date, so you can compare scenarios quickly.
All counting follows the Gregorian calendar, the civil calendar used across most of the world. The tool normalises both dates to midnight before subtracting, so results are never thrown off by daylight-saving shifts or by the time of day you happen to open the page.
The single setting that changes every number is the day-counting mode. "Exclude end" measures the gap between two dates: it is the number of midnights that pass from the start up to the end, and it is the natural answer to "how many days until…". "Include end (+1 day)" counts both the first and the last date as part of the span, which is what you normally want for a duration that begins and finishes on the stated days.
The difference is always exactly one day, but that one day matters in real situations:
If you are unsure which convention a contract or a team means, state it explicitly rather than assume.
Working days are counted as Monday through Friday inside the selected range; Saturdays and Sundays are skipped. The calculator does not subtract public holidays, because holiday calendars differ by country and by year. For project planning, treat the workday figure as an upper bound and then remove any office closures that apply to you.
The weeks result is split into whole weeks plus a remainder — for example 3 weeks and 4 days — which is more useful than a rounded decimal when you are scheduling. Months and years are shown as approximations using average month and year lengths (about 30.44 days and 365.24 days), so they suit quick context but not legal or financial precision. When you need exact calendar months, count them month by month rather than by dividing.
Suppose a project starts on 3 March 2025 and ends on 28 March 2025.
If the deadline slips to 31 March, the inclusive count rises to 29 days because two weekend days are added back — a reminder that a "few extra days" on the calendar can add less working time than expected.
日期间隔计算器把两个公历日期换算成一整套时长数据。你不需要跨月份做心算,只要选定开始日期和结束日期,就能立即得到相差天数、折合的周数与余天、约等于的月数、约等于的年数,以及区间内的工作日数量。任何日期一改,结果立刻刷新,方便你快速比较不同方案。
所有计算都基于公历,也就是世界上大多数地区使用的民用历法。工具会先把两个日期都归一到当天零点再做减法,因此结果不会因为夏令时切换,或你打开网页的时间点而产生偏差。
唯一会改变全部数值的设置就是计天方式。“不含首尾”衡量的是两个日期之间的间隔:从开始日期到结束日期之间经过的零点数量,也正是一般“距离某天还有几天”的答案。“含首尾(+1 天)”会把第一天和最后一天都算进跨度里,这正是描述“起止两天都算”的时长时通常需要的口径。
两种口径永远只差一天,但这一天的差别在实际场景中很关键:
如果合同或团队没有说清用哪种口径,最稳妥的做法是明确写出来,而不是想当然。
工作日按所选区间内的周一到周五统计,周六和周日跳过。工具不会扣除法定节假日,因为各国、各年份的假期安排都不一样。做项目排期时,可以把工作天数当作上限,再自行减去适用的公休。
周数结果会拆成整周加余天,例如 3 周 4 天,在排期时比一个四舍五入的小数更有用。月数和年数使用平均月长(约 30.44 天)和平均年长(约 365.24 天)来近似,适合快速参考,不适合法律或财务上的精确计算。需要精确到日历月时,请逐月推算,而不是简单相除。
假设某项目从 2025 年 3 月 3 日开始,到 2025 年 3 月 28 日结束。
如果截止日期顺延到 3 月 31 日,含首尾天数会增加到 29 天,因为补回了两天周末——这提醒我们,日历上多出的“几天”能带来的实际工作时间,往往比想象中少。
It depends on how you count. If an event runs from the 1st to the 3rd and you mean three calendar days (1, 2 and 3), choose "Include end (+1 day)". If you just want the gap between two dates, leave it excluded.
Workdays are all Mondays through Fridays in the counted range; Saturdays and Sundays are excluded. Public holidays are not considered.
The calculator automatically uses the absolute difference, so you still get a positive number of days, weeks and workdays between the two dates.