📅
免费计算器

日期计算器

计算两个日期之间的天数、周数、月数或年数,也可以从任意日期加减天数。

广告
📅日期计算器
请在上方选择日期

How to Calculate Days Between Two Dates

The simplest way to find days between dates is to convert both dates to a day count from a fixed reference point, then subtract. Our calculator does this automatically for any pair of dates.

Common uses for date calculations: counting days until a deadline or event, calculating someone's age in days, determining contract durations, figuring out when a payment is due, and calculating how many shopping days until a holiday.

Adding months is trickier than adding days because months have different lengths. Adding 1 month to January 31 is ambiguous — some systems use February 28, others use the last day of the target month. Our calculator uses the standard approach of adjusting to the last valid day of the month.

Useful Date Facts

常见问题

How many days are there between two dates?+
Subtract the earlier date from the later date. Our calculator shows the result in days, weeks, months, and years simultaneously. Example: from January 1 to December 31 of the same year = 364 days.
How do I add 90 days to a date?+
Enter your start date and type 90 in the "Add/Subtract Days" tab. Our calculator accounts for different month lengths and leap years automatically.
How many working/business days between two dates?+
Business day calculation requires knowing local holidays. Our calculator shows calendar days. To convert: subtract weekends (2 days per week) and estimate roughly 10–12 public holidays per year for the US.
What is a Julian date?+
A Julian date is a continuous count of days since noon on January 1, 4713 BC, used in astronomy. It is not the same as the Julian calendar. For everyday date arithmetic, standard calendar math is what you need.

全部计算器

广告

计算两个日期之间的天数

日期运算是计算两个日历日期相隔的天数,需要考虑每月天数和闰年(每 4 年一次,但不能被 400 整除的整百年除外)。计算器通常把每个日期转换为序列日数再相减。

计算示例

从 2026 年 1 月 1 日到 2026 年 7 月 4 日共 184 天:1 月剩余 30 天 + 28 天(2026 年 2 月不是闰年)+ 31 + 30 + 31 + 30 + 4。

常见问题

计入首尾还是不计? 惯例是不含起始日、含结束日;合同期限的定义可能不同,请以条款为准。

只算工作日? 工作日统计不含周六和周日,通常也不含法定假日,而各国的假日并不相同。

为什么每个月的天数不一样? 这是罗马历法留下的遗产 — 也正因如此,重要的事情用自动化的天数计算比心算更可靠。