计算两日期间隔(天/周/月/年)· 加减天数
Days between dates · Add or subtract days
Enter both dates above. The calculator shows exact days, weeks, months, and years, plus a detailed breakdown.输入两个日期即可。计算器显示精确的天数、周数、月数和年数,以及详细分解。
The standard calculation counts the difference (exclusive of one endpoint). To include both, add 1 to the result.标准计算是差值(不含一个端点)。如需包含两端,结果加 1 即可。
Yes. All calculations use JavaScript Date objects which correctly handle leap years and varying month lengths.是的。所有计算使用 JavaScript Date 对象,自动处理闰年和不同月份天数。
Yes. Enter a negative number in the 'Add/Subtract Days' section to go backwards from your start date.可以。在"加减天数"区域输入负数即可从起始日期往前推算。