日期计算器 — Two date utilities in one: the gap between any two dates (in days, with week/month/year equivalents), and a date shifter that adds or subtracts a number of days — useful for deadlines, due dates, and countdowns.
Date math runs locally in your browser.
Was 日期计算器 useful?
日期计算器是什么?
Two date utilities in one: the gap between any two dates (in days, with week/month/year equivalents), and a date shifter that adds or subtracts a number of days — useful for deadlines, due dates, and countdowns.
All math respects real calendar dates, including month lengths and leap years, and uses your local timezone so a date you pick is the date you mean.
使用方法
-
Difference
Pick From and To dates to see the gap in days and equivalents.
-
Shift a date
Pick a starting date and a day offset; negative values go backwards.
示例
January gap
From 1 Jan to 31 Jan.
2026-01-01 → 2026-01-31
结果: 30 days
Due date
30 days after 30 Jan 2026 crosses the month boundary.
2026-01-30 + 5
结果: Wed, Feb 4, 2026
常见问题
相关指南
What Is a Unix Timestamp and Why Do Programmers Use It?
A Unix timestamp is the number of seconds (or milliseconds) since January 1, 1970, UTC. This guide explains why it exists, how it works, and the practical consequences — including the Y2038 problem and the 2038 bug.
How to Create an Invoice Online Free (and Get Paid Faster)
A practical guide to making a professional invoice as a freelancer or small business. What to include, the common mistakes, the right format, and a free browser-based tool that generates a clean PDF without signup, watermarks, or sending your client data to a third party.
How to Calculate Age Exactly (in Years, Months, and Days)
A practical guide to age math: the difference between calendar years and elapsed time, why "years old" is fuzzier than you think, how to handle leap years and time zones, and how to get an exact result in your browser without uploading your birth date to anyone.
相关工具
Last reviewed: 2026-11-21