Date Calculator
Calculate date differences or add and subtract days in your browser.
Date Calculator — what it does
Two calculations in one place: the number of days between any two dates, and the date that results from adding or subtracting a number of days from a starting point. Both walk the real calendar, so month lengths and leap years are respected, which mental arithmetic across month boundaries rarely manages.
Worked example
Four calculations measured with the browser clock set to Asia/Taipei (UTC+8): two date differences, then 45 days added to 2026-10-20 and 365 days added to 2028-02-29.
| Mode | Input | Result |
|---|---|---|
| Date difference | 2026-10-20 → 2026-12-31 | 72 day(s) |
| Date difference | 2026-10-20 → 2026-10-01 | -19 day(s) |
| Add / subtract days | 2026-10-20 + 45 | December 4, 2026 |
| Add / subtract days | 2028-02-29 + 365 | February 28, 2029 |
A negative count means the end date lies before the start date; 2028-02-29 + 365 lands on 28 February 2029 because 2029 has no 29 February.
When this tool helps
- Finding a deadline that is a fixed number of days after a contract signing or an order date.
- Counting the days between an invoice date and today to see how overdue it is.
- Working out return-window or warranty end dates from a purchase date.
How to use it
- Choose the mode: date difference, or add and subtract days.
- For a difference, enter the start and end dates.
- For addition, enter the start date and the number of days, negative to go backwards.
- Read the resulting count or date.
Accuracy, limits, and good practice
- This counts calendar days including weekends; when a deadline is defined in working days, use the business days calculator instead.
- Adding days lands on whatever weekday it lands on — check the result against a calendar if the outcome must be a working day.
- The difference between a date and itself is zero; agree whether your process counts the first day before comparing results with someone else.
Frequently asked questions
Can I subtract days?
Yes. Enter a negative number in add mode, and the calculator steps backwards through the calendar.
Does it handle months and years too?
The units here are days. For an age-style breakdown in years, months and days, the age calculator does that decomposition.
Why does my result differ from a spreadsheet?
Spreadsheets differ in whether they count end dates inclusively. This tool counts the days strictly between the two dates you entered.
Why is my add/subtract result one day earlier than expected?
The start date is read as midnight UTC but the result is printed in your local time zone. In zones behind UTC, such as the Americas, 2026-10-20 + 45 shows December 3 instead of December 4; at or ahead of UTC the date is right. The difference mode is not affected.
Why does the result show a dash?
Both dates must be valid: until the start date (and, in difference mode, the end date) is filled in, the result is —. There is no run button; the result updates as you type, and the day count may go negative.
Related tools on this site
- Tax / VAT Calculator — Add tax to a net amount or extract tax from a gross amount
- Break-even Calculator — Calculate break-even units and revenue
- Depreciation Calculator — Build straight-line or declining-balance depreciation schedules
Further reading: Margin, Markup, Break-even and ROI: Which Number Answers Which Question
Everything above runs inside this page. Date Calculator needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
日期計算器能做什麼
兩種計算集中在一處:任意兩個日期之間相隔幾天,以及從某個日期加上或減去若干天後落在哪一天。兩者都沿真實日曆逐日推進,月份長短與閏年都有顧到,這正是跨月心算最容易失手的地方。
實際範例
瀏覽器時區設為 Asia/Taipei(UTC+8)時量得的四個結果:兩個日期差,再把 2026-10-20 加 45 天、2028-02-29 加 365 天。
| 模式 | 輸入 | 結果 |
|---|---|---|
| 日期差 | 2026-10-20 → 2026-12-31 | 72 day(s) |
| 日期差 | 2026-10-20 → 2026-10-01 | -19 day(s) |
| 加減天數 | 2026-10-20 + 45 | December 4, 2026 |
| 加減天數 | 2028-02-29 + 365 | February 28, 2029 |
負數代表結束日期早於開始日期;2028-02-29 加 365 天落在 2029 年 2 月 28 日,因為 2029 年沒有 2 月 29 日。中文介面的日期會以「2026年12月4日」格式顯示。
什麼時候用得上
- 找出簽約日或下單日之後固定天數的截止日。
- 計算發票日期與今天相隔幾天,看逾期多久。
- 從購買日推算退貨期限或保固到期日。
使用步驟
- 選擇模式:日期差,或加減天數。
- 算日期差時,輸入起訖兩個日期。
- 算加減時,輸入起始日期與天數,負數代表往回推。
- 查看得到的天數或日期。
精確度、限制與實務建議
- 此處計的是含週末的日曆天;若期限以工作天定義,請改用工作日計算器。
- 加天數後落在哪個星期幾就是哪天;若結果必須是工作日,請再對照月曆確認。
- 同一天與自己相差為零天;與他人核對前,先講好流程是否把第一天算進去。
常見問題
可以減天數嗎?
可以。在加減模式輸入負數,計算器就會沿日曆往回推。
也能以月或年計算嗎?
此工具以天為單位。若需要年、月、日形式的拆解,年齡計算器提供這種分解。
為什麼結果和試算表不一樣?
各試算表對是否包含結束日的定義不一;本工具計的是兩個日期之間的嚴格天數。
加減天數的結果為何比預期早一天?
開始日期是以 UTC 零時讀入,結果卻用瀏覽器的本地時區顯示。在 UTC 以西的時區(例如美洲),2026-10-20 加 45 天會顯示 December 3 而不是 December 4;在 UTC 或以東的時區則正確。日期差模式不受影響。
結果為何顯示一個破折號?
兩個日期都必須有效:開始日期(日期差模式還要加上結束日期)填好之前,結果就是「—」。沒有執行按鈕,結果會隨輸入即時更新,天數也可能是負數。
本站相關工具
- 稅率/VAT 計算器 — 在未稅金額加稅,或從含稅金額反推稅額
- 盈虧平衡計算器 — 計算損益平衡銷量與營業額
- 折舊計算器 — 產生直線法或定率遞減法折舊表
延伸閱讀: 毛利率、加成率、損益兩平與投資報酬率:哪個數字回答哪個問題
以上步驟全部在這個頁面內完成,日期計算器 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。