Time Between Dates
在浏览器中使用「Time Between Dates」完成代码、数据与二维码相关任务;输入内容和结果默认在设备上处理。
使用步骤
如何使用
- Enter the start and end calendar dates.
- Choose whether the end date counts as a full day.
- Calculate the difference and review the duration in multiple units.
Calendar dates, not clock times
This tool compares dates at midnight UTC. It is designed for whole calendar days and avoids browser time-zone or daylight-saving changes affecting the answer.
Inclusive and exclusive end dates
When the end date is included, one calendar day is added to the elapsed difference. The start date is always included as the beginning of the range.
Private browser calculation
Validation and calculation happen locally in your browser. No dates are uploaded or stored by this page.
常见问题
你可能还想知道
Is the end date included?
You can choose either. The default excludes it, matching the elapsed time between two calendar midnights.
Does this account for leap years?
Yes. The browser date engine uses the proleptic Gregorian calendar, including leap years.
Does daylight saving time change the result?
No. Dates are compared at UTC midnight, so the result is a stable calendar-day count.
Can I enter the dates in reverse order?
No. The end date must be on or after the start date.