cd /news/developer-tools/stop-hard-coding-holidays-4-free-cal… · home › topics › developer-tools › article
[ARTICLE · art-179262] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Stop hard-coding holidays: 4 free calendar datasets for developers

ToolWix released four free calendar datasets as plain CSV and JSON under a CC BY 4.0 license, covering business days and payroll schedules for 2026-2030, DST clock changes across IANA zones, a day-by-day Nepali Bikram Sambat calendar from 2000-2090 BS, and seven world calendars side by side. The datasets are hosted on GitHub and Hugging Face, carry Zenodo DOIs for version pinning, and include a 'verified' flag distinguishing government-checked years from rule-based ones. The company notes the data ends in 2030 and that code should raise errors for out-of-range dates rather than treating them as ordinary days.

key takeaway

ToolWix's CC BY 4.0 calendar datasets cover business days, DST transitions, Bikram Sambat and world calendars through 2030, but the 'verified' flag marks rule-based years where one-off holidays may be missing, so bundle and pin a version for reproducible results.

by read2 min views6 publishedDec 1, 2026

Date bugs rarely show up on the day you write the code. They show up on a holiday, on a clock-change weekend, or when someone needs a calendar your library does not have.

We publish four calendar datasets as plain CSV and JSON, generated from the same code as the date tools on ToolWix (disclosure: that is our site). They are CC BY 4.0, so commercial use is fine with credit.

Dataset Covers Links
Business days and payroll 2026-2030; US, UK (3 regions), Canada, Australia GitHub ,Hugging Face
DST clock changes 2026-2030; every IANA zone that changes GitHub ,Hugging Face
Nepali (Bikram Sambat) calendar 2000-2090 BS, day by day GitHub ,Hugging Face
World calendars 2026-2030; seven calendars side by side GitHub ,Hugging Face

The examples below use pandas and read straight from GitHub.

from datetime import date, timedelta
import pandas as pd

BASE = "https://raw.githubusercontent.com/toolwix"
holidays = pd.read_csv(f"{BASE}/business-days-dataset/main/public-holidays.csv")
us = set(holidays.loc[holidays.region == "us", "date"])

def add_business_days(start, n):
    day = start
    while n > 0:
        day += timedelta(days=1)
        if day.weekday() < 5 and day.isoformat() not in us:
            n -= 1
    return day

print(add_business_days(date(2026, 12, 23), 3))  # 2026-12-29

Only national holidays are included, and the data ends in 2030. In real code, raise an error for dates outside the range instead of treating them as ordinary days.

paydays = pd.read_csv(f"{BASE}/business-days-dataset/main/paydays.csv")
moved = paydays[(paydays.region == "us") & (paydays.schedule == "weekly") & paydays.moved]
print(moved[["scheduled_date", "pay_date", "holiday"]].head().to_string(index=False))

The rule here is "pay on the previous business day". That is a common convention, not a law.

dst = pd.read_csv(f"{BASE}/dst-transitions-dataset/main/dst-transitions.csv")
rows = dst[dst.zone.isin(["America/New_York", "Europe/London"]) & (dst.year == 2027)]
print(rows[["zone", "transition_utc", "direction"]].to_string(index=False))

In 2027 the US moves forward on 14 March and the UK on 28 March. They move back on 31 October (UK) and 7 November (US). A recurring 9:00 New York meeting lands at a different London time in between.

Bikram Sambat month lengths do not follow a formula, so a lookup table is the practical way.

const url = "https://raw.githubusercontent.com/toolwix/nepali-calendar-dataset/main/nepali-calendar-daily.csv";
const text = await (await fetch(url)).text();

const toBS = new Map(
  text.trim().split(/\r?\n/).slice(1).map((line) => {
    const [ad, , bs] = line.split(",");
    return [ad, bs];
  })
);

console.log(toBS.get("2026-04-14")); // 2083-01-01

For production, bundle a copy of the file rather than fetching it from GitHub at run time.

from datasets import load_dataset

months = load_dataset("toolwix/business-days", "by_month", split="train")

verified column says whether a region and year were checked against the official government calendar. false means rule-based, so one-off holidays may be missing. Pin a version if your results must be reproducible. Each dataset has a DOI on Zenodo: business days, DST, Nepali, world calendars.

If you find a wrong date, tell us through the contact page. What calendar data do you keep rebuilding in your own projects?

── more in #developer-tools 4 stories · sorted by recency
── more on @toolwix 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/stop-hard-coding-hol…] indexed:0 read:2min 2026-12-01 · —