Hard-coding July 4 as Independence Day will mis-schedule federal business days in both 2026 and 2027. The U.S. Office of Personnel Management's Federal Holidays page, which lists public holidays for federal employees under 5 U.S.C. 6103, says most federal employees work a Monday through Friday schedule. For those employees, when a holiday falls on a nonworkday — Saturday or Sunday — the holiday usually is observed on Friday (if it falls on Saturday) or Monday (if it falls on Sunday).
The 2026 table lists Independence Day on Friday, July 03. The footnote on that row states that if a holiday falls on a Saturday, for most federal employees the preceding Friday is treated as a holiday for pay and leave purposes (5 U.S.C. 6103(b)). July 4, 2026 is a Saturday.
The 2027 table marks three observed dates the same way:
- Juneteenth National Independence Day: Friday, June 18 (June 19, 2027 is a Saturday)
- Independence Day: Monday, July 05 (July 4, 2027 is a Sunday)
- Christmas Day: Friday, December 24 (December 25, 2027 is a Saturday)
OPM's "Federal Holidays — In Lieu Of Determination" fact sheet restates the Monday-Friday rule: a Saturday holiday is observed on the Friday immediately before, and a Sunday holiday is observed on the Monday immediately after. The same fact sheet also says this general rule is for that workweek. Other basic workweeks and compressed schedules can have different "in lieu of" days, agencies generally may not let employees pick a different day, and part-time employees are not entitled to an "in lieu of" holiday.
A year-boundary case is already on the 2028 table. New Year's Day is listed as Friday, December 31, because January 1, 2028 falls on a Saturday, so the observed day is still in 2027. A function that only looks up holidays inside the calendar year being counted will miss that Friday.
If you store only the statutory month-day values — January 1, June 19, July 4, November 11, December 25 — you need a second step that applies the weekend observance rule for a Monday-Friday calendar, or you should load the observed dates OPM publishes for each year. Private employers and securities exchanges may close on different days than this federal-employee calendar; this article is only about the dates on OPM's list.
Source: U.S. Office of Personnel Management, "Federal Holidays" and "Federal Holidays — In Lieu Of Determination" (confirmed 2026-11-19, KST):
https://www.opm.gov/policy-data-oversight/pay-leave/federal-holidays
https://www.opm.gov/policy-data-oversight/pay-leave/work-schedules/fact-sheets/Federal-Holidays-In-Lieu-Of-Determination
Top comments (0)