Working Days Calculator|工作日天数计算器

工作日天数计算器 | Working Days Calculator

工作日天数计算器 Working Days Calculator

计算两个日期之间的工作日天数,可选择是否排除周末与自定义节假日。
Calculate the number of working days between two dates, optionally excluding weekends and custom holidays.

1. 输入日期与规则 · Date Range & Rules
统计区间的第一天。通常为自然日,可与结束日期相同。
The first day of the period. It can be the same as the end date.
统计区间的最后一天。若结束日期早于起始日期,工具会提醒错误。
The last day of the period. If the end date is earlier than the start date, an error will be shown.
包含起止:从起始日期到结束日期都计入区间。
不包含起止:仅统计二者之间的日期,不含边界。
Inclusive: both start and end dates are considered in the range.
Exclusive: only the days strictly between the two dates are counted.
勾选后,周六与周日将不计为工作日;也可以排除你手动输入的节假日日期。
When enabled, Saturdays and Sundays will not be counted as working days; you can also exclude your own holiday dates.
在此输入需要额外排除的节假日日期(如法定假日、公司统一休假日等)。
Enter additional holiday dates that should be excluded (e.g., public holidays, company-wide days off).
仅当「排除自定义节假日」被勾选时才会生效。
These dates are only applied when “Exclude custom holidays” is checked.
3. 使用说明与注意事项 · How It Works & Notes
  • 工作日定义 · Definition of Working Day:
    在默认设置下,工作日为:周一至周五,且不在自定义节假日列表中。
    By default, a working day is any Monday to Friday that is not in your custom holiday list.
  • 总天数的计算 · Total Days Calculation:
    若选择「包含起始和结束日期」,总天数 = 起始日期与结束日期之间包含边界的天数。
    若选择「不包含起始和结束日期」,总天数仅统计二者之间的自然日,不含边界。
    When “Include both start and end dates” is selected, the total days include both boundaries. When “Exclude start and end dates” is selected, only the days strictly between them are counted.
  • 节假日列表 · Custom Holiday List:
    你可以按行或用逗号输入多个日期,格式为 YYYY-MM-DD,例如:2025-01-01
    You may enter multiple dates line by line or separated by commas in YYYY-MM-DD format.
    若同一天既是周末又在节假日列表中,该日期只会在统计中计算一次。
    If a date is both a weekend and a holiday, it is still only one calendar day and will be counted once in totals.
  • 适用场景示例 · Typical Use Cases:
    ▸ 项目排期与交付期限测算 · Project scheduling and deadline planning
    ▸ 统计请假天数与实际工作天数 · Leave vs. actual working days statistics
    ▸ 计算培训课时、教学周次等 · Training hours or teaching weeks planning

说明:本工具仅基于你输入的日期区间与自定义节假日进行理论计算,未内置任何国家或地区的法定节假日规则; 如需精确到具体国家/地区的放假安排,请手动维护节假日列表。
Note: This tool uses only your date range and custom holidays for theoretical calculation. It does not include any built-in national or regional public holiday calendars. For precise results, please maintain your own holiday list according to local regulations and company policies.