staticdata.dev
Menu
Datasets About Contact

Weekdays

The seven days of the week numbered according to ISO 8601, where Monday is 1 and Sunday is 7. Each record includes the full English name, the conventional 3-letter abbreviation (Mon–Sun), and a compact 2-letter short form (Mo–Su) suitable for calendar grid headers and space-constrained UIs.

v1.0.0 MIT 7 records Updated 2026-10-05 stable Source:  ISO 8601 Date and Time Standard

Quick fetch

Stable URL. CORS-enabled. No auth.

bash
curl https://staticdata.dev/v1/weekdays.json

Or use as a typed import: import { weekdays } from "https://staticdata.dev/v1/weekdays.ts"

Formats

  • JSON 683 B

    /v1/weekdays.json

    Open

    min: 471 B · /v1/weekdays.min.json

  • CSV 162 B

    /v1/weekdays.csv

    Open
  • TypeScript 871 B

    /v1/weekdays.ts

    export const weekdays

    type Weekday = (typeof weekdays)[number]

    Open

Schema

Each record in the dataset has the following shape.

Schema
Field Type Description Example
isoNumber number ISO 8601 day number (1=Monday, 7=Sunday) 1
name string Full English day name Monday
abbreviation string 3-letter abbreviation Mon
short string 2-letter short form for compact displays Mo

Preview

First 7 records.

Data preview
isoNumbernameabbreviationshort
1MondayMonMo
2TuesdayTueTu
3WednesdayWedWe
4ThursdayThuTh
5FridayFriFr
6SaturdaySatSa
7SundaySunSu

Showing 7 of 7. View full data:  JSON · CSV

Fetch examples

Drop-in snippets in five languages.

curl
curl -sSL https://staticdata.dev/v1/weekdays.json | jq '.[0]'
JavaScript
import type { Weekday } from "https://staticdata.dev/v1/weekdays.ts";

const res = await fetch("https://staticdata.dev/v1/weekdays.min.json");
if (!res.ok) throw new Error(`Fetch failed: ${res.status}`);
const weekdays: Weekday[] = await res.json();
console.log(weekdays[0]);
Python
import urllib.request, json

with urllib.request.urlopen("https://staticdata.dev/v1/weekdays.min.json") as r:
    weekdays = json.load(r)

print(weekdays[0])
Go
package main

import (
	"encoding/json"
	"fmt"
	"net/http"
)

func main() {
	resp, err := http.Get("https://staticdata.dev/v1/weekdays.min.json")
	if err != nil { panic(err) }
	defer resp.Body.Close()

	var data []map[string]any
	if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
		panic(err)
	}
	fmt.Println(data[0])
}
Rust
use serde_json::Value;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let body = ureq::get("https://staticdata.dev/v1/weekdays.min.json").call()?.into_string()?;
    let data: Vec<Value> = serde_json::from_str(&body)?;
    println!("{:?}", data.first());
    Ok(())
}

Sources and methodology

The dataset lists the seven days of the week following the ISO 8601 standard, which designates Monday as day 1 and Sunday as day 7. This numbering is used across most of Europe, and is the default in many programming environments (e.g. date-fns, Java’s DayOfWeek, PostgreSQL’s ISODOW). Note that Sunday-first conventions differ (JavaScript’s Date.getDay() uses Sunday = 0 … Saturday = 6) — to convert, use isoNumber % 7, which maps Sunday to 0 and leaves Monday–Saturday as 1–6.

Each record provides a full English name, a 3-letter abbreviation aligned with locale-neutral conventions (Mon, Tue, Wed, Thu, Fri, Sat, Sun), and a 2-letter short form (Mo, Tu, We, Th, Fr, Sa, Su) commonly used in calendar grid column headers where space is limited.

This dataset is intentionally locale-neutral: all names are in English. For localised day names, use the CLDR data or your runtime’s Intl.DateTimeFormat API with an appropriate locale and weekday option.

Versioning

URLs under /v1/ are stable: field names and types will not change in a way that breaks consumers. Values can be corrected or records added when the upstream source changes; schema-incompatible updates ship under a new version path. See the weekdays changelog for this dataset's history.

Related datasets

More Locale datasets