跳到正文Skip to content

日期计算器Date Calculator

计算两个日期之间的天数,或对日期加减天数。Count the days between two dates, or add and subtract days from a date.

理念:Idea: 重要的日子,提前算清楚。Count the days that matter, ahead of time.

解决:Solves: 两日期相隔多少天、加减天数Days between dates, or add/subtract days

适合:For: 算工期、倒计时、纪念日的人Anyone counting days

可用Available在浏览器中运行Runs in your browser
Loading tool…

在你的设备上本地处理。这里输入的内容不会上传。Processed locally on your device. Nothing you enter here is uploaded.

使用方法How to use

  1. 1选开始日期和结束日期,查看相差多久。Pick a start date and an end date to see the difference.
  2. 2如果两天都要算进去,打开「Include end date」。Turn on “Include end date” if both days should be counted.
  3. 3下面一块用来加或减若干天。Use the second panel to add or subtract a number of days.

说明Good to know

  • 默认不把结束日算进去(1 月 1 日到 1 月 2 日是 1 天)。By default the difference does not include the end date (Jan 1 → Jan 2 is 1 day).
  • 按日历日期计算,闰年、月份长短和夏令时都会算对。Calculations use calendar dates, so leap years, month lengths and daylight-saving changes are handled correctly.
  • 时间戳转换Unix Timestamp Converter

    Unix 时间戳与日期时间互转,支持秒和毫秒。Convert Unix timestamps to dates and back, in seconds or milliseconds.

    可用Available计算与换算Calculators
  • 存储单位换算Data Size Converter

    字节、KB/MB/GB/TB(十进制)与 KiB/MiB/GiB/TiB(二进制)并排换算。Convert bytes, KB, MB, GB, TB (decimal) and KiB, MiB, GiB, TiB (binary) side by side.

    可用Available计算与换算Calculators
  • 折扣计算器Discount Calculator

    算折后价、节省金额和实际折扣,也能从现价反推折扣。Find the final price, savings and effective discount, or work backwards from a sale price.

    可用Available计算与换算Calculators
  • 百分比计算器Percentage Calculator

    三个常见百分比问题:A% 是多少、A 占 B 多少、从 A 到 B 增减多少。Three common percentage questions: A% of B, A as a share of B, and change from A to B.

    可用Available计算与换算Calculators