日期差
Frequently Asked Questions
Everything you need to know about date calculations
How are working days calculated?
Working days count only the days from Monday to Friday within the interval, excluding Saturday and Sunday. Note that the calculation does NOT exclude national or local holidays, which vary from country to country: if you need them, manually subtract the holidays in the period.
Does the calculation account for leap years?
Yes. The total days count is based on real calendar dates, so February 29 of leap years is correctly included. The breakdown into years, months and days also respects the actual length of each month.
What is the "add / subtract days" mode for?
This mode lets you start from a date and add or subtract a number of days to get the resulting date, including the day of the week. It is useful for calculating contract deadlines, delivery terms, billing dates or X-day reminders.
两个日期之间怎么算天数?
把两个日期转成时间戳相减再换算成天。闰年和每月天数不同都会自动算进去,所以结果和翻日历数出来的一样。