如何計算兩個日期之間的天數
- 輸入兩個日期
- 選擇計算方式
- 檢視天數
From today to a deadline, from the start to the end of a contract, the length of a trip. "Days between two dates" in Calculate Age, Days Between Dates and Date Offsets tells you how many days lie between two dates.
步驟
- Under "Days between two dates", enter the "Start date".
- Enter the "End date".
- If needed, tick "Count the first day (include in the period)".
- 會顯示「天數」和「幾周幾天」。
Reading the result
- Days: the number of days between the two dates.
- Weeks and days: how many weeks and days. Example: 10 days → 1 week and 3 days.
示例
- Start 1 October, end 10 October
- Not counting the first day → 9 days
- Counting the first day → 10 days
- Start 1 January 2026, end 31 December 2026 → 364 days (365 if counting the first day)
適合
- Days remaining until a deadline
- Days of a contract or warranty period
- Days of a trip or business trip
- Elapsed days (hospital stay, working days and so on)
Calculating "nights and days"
For a trip, "N nights, N+1 days" counts the first day.
- 1 October to 3 October → 2 nights, 3 days (3 days)
Ticking "Count the first day" gives 3.
Order of dates
Even if the "End date" is earlier than the "Start date", it may still calculate. If the result is negative, check the order of entry.
If you want to exclude weekends
This tool counts calendar days. Business-day calculation (excluding weekends and holidays) needs another method.
Common stumbling blocks
- Off by one day: check whether the first day is counted.
- Wrong date: check year, month and day.
- Leap years: years with 29 February are calculated automatically.
Frequently asked questions
How do I count the days of a contract period?
It depends on the contract's wording. Whether the first day of the period is included follows the contract's provisions.
小結
Calculates the days between two dates instantly. Match whether to count the first day to the document's specification.
使用「計算年齡、日期間隔天數和日期加減」(免費)搭配使用的工具
- 西曆與日本年號互相轉換:西曆與日本年號互相轉換。
- 計算消費稅(含稅/不含稅):立即計算含稅和不含稅金額。
- 製作簡歷 PDF(日式履歷書):填寫個人資訊、學歷、工作經歷和求職動機,製作日式簡歷(履歷書)PDF,可選擇新增證件照。