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

> Source: <https://dev.to/toolwix/stop-hard-coding-holidays-4-free-calendar-datasets-for-developers-153j>
> Published: 2026-12-01 10:09:34+00:00

**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.

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](https://toolwix.com/) (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](https://github.com/toolwix/business-days-dataset) ,[Hugging Face](https://huggingface.co/datasets/toolwix/business-days) | 
| DST clock changes | 2026-2030; every IANA zone that changes | [GitHub](https://github.com/toolwix/dst-transitions-dataset) ,[Hugging Face](https://huggingface.co/datasets/toolwix/dst-transitions) | 
| Nepali (Bikram Sambat) calendar | 2000-2090 BS, day by day | [GitHub](https://github.com/toolwix/nepali-calendar-dataset) ,[Hugging Face](https://huggingface.co/datasets/toolwix/nepali-calendar) | 
| World calendars | 2026-2030; seven calendars side by side | [GitHub](https://github.com/toolwix/world-calendars-dataset) ,[Hugging Face](https://huggingface.co/datasets/toolwix/world-calendars) | 

The examples below use pandas and read straight from GitHub.

``` python
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.

``` js
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.

``` python
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](https://doi.org/10.5281/zenodo.24710395), [DST](https://doi.org/10.5281/zenodo.24710405), [Nepali](https://doi.org/10.5281/zenodo.24710413), [world calendars](https://doi.org/10.5281/zenodo.24710417).

If you find a wrong date, tell us through the [contact page](https://toolwix.com/contact/). What calendar data do you keep rebuilding in your own projects?
