工作日天数计算器 Working Days Calculator
计算两个日期之间的工作日天数,可选择是否排除周末与自定义节假日。
Calculate the number of working days between two dates, optionally excluding weekends and custom holidays.
1. 输入日期与规则 · Date Range & Rules
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 inYYYY-MM-DDformat.
若同一天既是周末又在节假日列表中,该日期只会在统计中计算一次。
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.
