📅 日期計算機
Date Calculator

➕➖

日期加減計算器Date Add / Subtract

計算結果 Result
結果日期 (Result Date)
變化天數 (Days Changed)
📊

日期差異計算器Date Difference

計算結果 Result
天數 (Days)
月數 (Months)
年數 (Years)

總計 (Total)

 什麼是日期計算工具?
What is the Date Calculation Tool?

日期計算工具是一個多功能的免費線上工具,專為需要精確處理日期的使用者設計。它提供兩大核心功能:日期加減計算器可從任意基準日期向前或向後推算特定的年、月、日,直接顯示目標日期及總變化天數;日期差異計算器則可輸入任意兩個日期,即時計算兩者之間相差幾天、幾個月、幾年,還支援「包含結束日」選項以因應不同計算需求。

本工具採用格里曆(Gregorian Calendar)標準演算法,自動處理閏年判斷、不同月份長度差異、月底進位等複雜情境,確保每次計算結果的精確性。相較於手動查閱月曆或使用試算表公式,日期計算工具操作更直覺,出錯機率更低,適合任何需要日期規劃的人士使用。

The Date Calculation Tool is a free, multifunctional online utility designed for anyone who needs precise date handling. It features two core functions: the Date Add/Subtract Calculator projects a target date by adding or subtracting years, months, and days from a base date; the Date Difference Calculator measures the exact gap between any two dates in days, months, and years — with an optional "include end date" toggle for different counting conventions. Built on standard Gregorian calendar logic, it automatically handles leap years, month-end edge cases, and rollovers, delivering reliable results every time.

 如何使用?
How to Use?

  1. 在「日期加減計算器」中,點選輸入框選擇基準日期,選擇加法或減法,輸入想要增減的年數、月數、日數,點擊「計算」即可看到推算後的目標日期與總天數。
    In the "Date Add/Subtract Calculator", click the date picker to choose a base date, select Add or Subtract, enter the years/months/days to adjust, then click Calculate to see the resulting date and total day change.
  2. 在「日期差異計算器」中,分別選擇開始日期與結束日期,視需求勾選「包含結束日」,點擊「計算」即可顯示天數差、月數差、年數差與完整說明。
    In the "Date Difference Calculator", select a start and end date, optionally check "Include End Date", then click Calculate to see the difference broken down by days, months, and years.
  3. 所有計算即時完成,無需等待或重新整理頁面,並自動處理閏年、月底與跨年等特殊情境。
    All results appear instantly — no page reload needed. The tool automatically handles leap years, month-end rollovers, and year crossings.

 功能特色
Key Features

  • 雙向日期加減: 向前或向後推移任意天數、月份與年份,靈活應對各種日期規劃需求
    Flexible forward or backward date shifting in any combination of years, months, and days
  • 精準差異比較: 清楚列出兩個日期間的天數、月數、年數差異,一目了然
    Accurately compare two dates with a full breakdown by years, months, and days
  • 自動處理複雜情況: 內建閏年判斷、月底進位(如1月31日加1月自動調整至2月28/29日)、跨年計算
    Automatically handles leap years, month-end edge cases (e.g. Jan 31 + 1 month → Feb 28/29), and year transitions
  • 結束日包含選項: 可選擇是否計入結束當天,適應請假、合約、行程等不同計算習慣
    Optional end-date inclusion to match different counting conventions for leave, contracts, or events
  • 雙語界面: 所有標籤與說明中英文對照,支援雙語使用者
    All labels and descriptions are bilingual (Chinese/English) for international users

 適用情境
When to Use This Tool?

  • 專案與活動規劃: 預估時程、計算活動籌備倒數、確認里程碑日期
    Plan project timelines, count down to events, and confirm milestone dates
  • 重要期限追蹤: 計算距離考試、報名截止、畢業日、合約到期還有多少天
    Track days until exams, application deadlines, graduation, or contract expiry
  • 請假與工時計算: 精確計算請假天數、出差時長或勞動合約期間,視需求選擇是否含首尾兩日
    Calculate leave days, business trips, or contract durations — with or without end date included
  • 財務與保障到期提醒: 推算帳單付款期限、貸款到期日、保固期或保險到期日
    Project payment due dates, loan maturities, warranty expiration, or insurance renewal dates
  • 懷孕週數與預產期推算: 從最後一次月經日期計算預產期(加280天),或追蹤懷孕進入第幾週
    Estimate due dates (last period + 280 days) or track how many weeks into a pregnancy
  • 週年紀念與節日規劃: 計算結婚週年、公司創立周年、或距下一個節假日的確切天數
    Calculate wedding anniversaries, company founding milestones, or days until the next holiday

 常見問題
Frequently Asked Questions

日期加減計算器和日期差異計算器有什麼不同?

日期加減計算器是「以一個起點日期出發,向前或向後推算特定天/月/年後,會到達哪一天」;日期差異計算器則是「給定兩個日期,計算它們之間相差幾天、幾個月、幾年」。前者是從日期推算結果,後者是量測兩個已知日期之間的差距。

The Date Add/Subtract Calculator answers "what date is X days/months/years from a starting date?" The Date Difference Calculator answers "how far apart are these two dates?" One projects a new date; the other measures the gap between two known dates.

計算月份加減時,為什麼結果有時不直覺?

月份長度不一致(28至31天),因此「加1個月」的結果會依起始日期而有所不同。例如1月31日加1個月,因2月沒有第31天,系統會自動調整至2月的最後一天(平年28日、閏年29日)。這符合全球通用的格里曆標準,並非程式錯誤。

Months have unequal lengths (28–31 days), so "add 1 month" yields different results depending on the start day. For example, January 31 + 1 month → February 28 or 29, since February has no 31st. This follows standard Gregorian calendar logic.

閏年如何影響日期計算結果?

閏年每四年出現一次(能被4整除但不被100整除,或能被400整除),2月有29天。本工具內建閏年判斷邏輯:若計算結果落在閏年的2月29日,會正確顯示;若起始日期為2月29日,在對非閏年進行年數加減時,系統會自動將結果調整至2月28日。

Leap years occur every 4 years (divisible by 4 but not 100, or by 400), giving February 29 days. This tool handles all leap year edge cases: it correctly displays Feb 29 results and auto-adjusts Feb 29 start dates to Feb 28 when projected into non-leap years.

「包含結束日」選項有什麼作用?

此選項決定計算日期差異時,是否將結束當天也計入總天數。例如1月1日至1月3日,不含結束日為2天;含結束日則為3天。計算請假天數、合約期間或活動天數時,通常習慣包含首尾兩日,因此建議勾選此選項。

This option determines whether the end date itself is counted. Jan 1 to Jan 3 without end date = 2 days; with end date = 3 days. For leave days, contract durations, or event lengths where both the first and last day count, check this option.

如何用本工具計算「距今還有幾天」?

使用「日期差異計算器」,將開始日期設為今天,結束日期設為您的目標日期(如考試日、截止日、節日),即可立即得知還剩多少天、月、年。若想查看某個過去日期距今已過多久,對調開始與結束日期即可。

Use the Date Difference Calculator: set the start date to today and the end date to your target (exam, deadline, holiday) to instantly see the remaining days, months, and years. Swap the dates to check how long ago a past event was.

日期要如何輸入?支援哪些格式?

本工具使用日曆選擇器(Flatpickr),點選輸入框後會彈出圖形日曆介面,直接點選年、月、日,無需手動輸入任何文字格式。支援格里曆所有標準日期,包含遠古年份及未來日期,方便各種歷史研究或長期規劃使用。

This tool uses a calendar picker (Flatpickr). Click any date input to open a graphical calendar — just click the year, month, and day. No manual text entry needed. All standard Gregorian dates are supported, including historical dates and far-future years.

 為什麼選擇本工具?
Why Choose This Tool?

手動日期計算不僅耗時,還容易因閏年、各月天數不同或月底特殊情況而出錯。許多人習慣用手機行事曆或試算表來推算日期,但前者無法直接輸入「加3個月7天」這類需求,後者則需要撰寫公式且不直觀。本工具專為日期推算與差距比較設計,提供乾淨的圖形操作介面,不需記憶公式,結果清楚分項顯示,適合職場人士、學生、孕媽咪、財務規劃人員等各種需要掌握時間的使用者。

Manual date math is error-prone — leap years, variable month lengths, and month-end edge cases are all easy to get wrong. While calendars and spreadsheets can help, they require formula knowledge or lack direct support for "add 3 months and 7 days" queries. This tool is built specifically for date projection and difference measurement, with a clean graphical interface, no formulas required, and clearly itemized results. It's ideal for professionals, students, expectant parents, financial planners, and anyone who needs precise control over time.

 總結
Summary

日期計算工具整合了日期加減與差異比較兩大功能,涵蓋從工作規劃、財務追蹤、節日倒數到孕期推算等各種生活應用場景。不論需求多簡單或多複雜,本工具皆能提供即時、精確且易懂的計算結果,是掌握時間管理的最佳利器。

This date calculator combines two powerful functions — date addition/subtraction and date difference — to cover a wide range of everyday use cases, from work planning and financial tracking to holiday countdowns and pregnancy milestones. Whether your needs are simple or complex, it delivers instant, accurate, and easy-to-read results, making it an indispensable tool for managing time effectively.