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.

1. Add business days, skipping holidays

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.

2. Find paydays that move

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.

3. When are New York and London only 4 hours apart?

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.

4. Convert a date to Nepali in JavaScript

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.

5. Load from Hugging Face

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

Know the limits

  • Holidays: the 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.
  • DST: future changes follow tz database 2025c. Governments change rules, sometimes at short notice. For live time zone conversion, use your platform's tz support.
  • Nepali: no year has been checked against an official calendar yet.
  • Islamic dates: dates that depend on moon sighting can differ by a day.

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?