ISO 8601 · US · day of year · weekday

Find the week number for any date

ISO 8601 (Monday-start, first-Thursday rule) and US (Sunday-start) week numbers, plus day-of-year and weekday name.

Quick Start

How to find the week number

ISO 8601 vs US numbering disagree on which week is #1. This tool computes both — plus day-of-year and weekday — for any calendar date.

  1. 01

    Pick a date

    Use the date picker. Defaults to today.

    Parsing accepts ISO 8601, RFC 3339, RFC 2822, and Unix epoch seconds/milliseconds. The Date constructor handles the rest with browser-engine consistency.

    inputISO 8601RFC 3339epochlive
    date · timestampiso · ISO
    2026-05-21
    loaded · ISO 8601zone · ready
  2. 02

    ISO 8601 week

    Monday-start. Week 1 = week containing the first Thursday.

    All math runs in UTC internally to avoid DST landmines; presentation converts back to the user’s zone via Intl.DateTimeFormat.

    isoUTC mathIntlDST-safelive
    iso · optionsW21 · live
    2026-W21
    options applied · UTCDST-safe
  3. 03

    US week

    Sunday-start. Week 1 = week containing Jan 1.

    Output respects the chosen timezone offset (Z vs +05:30) and pads digits per ISO conventions so sorts stay chronological.

    usoffsetzone-awaresortablepadded
    us · computed21 · ready
    week 21
    computed · instantsortable
  4. 04

    Copy result

    Copy all info as plain-text for tickets, reports, log lines.

    Copy writes via the Async Clipboard API; nothing pings a time server — the browser’s clock is the only oracle.

    exportclipboardno oracledeterministicclient-side
    ✓ · copiedready · done
    ✓ Copied
    shipped · ready to shipsuccess
Pro tips

Time math without DST landmines

Always store UTC

Convert to local for display only. UTC storage avoids DST jumps and timezone drift in databases.

Watch leap seconds

POSIX time doesn’t count leap seconds; some systems do. Don’t use timestamps for sub-second precision across boundaries.

Prefer Temporal eventually

The Date API has many quirks. Temporal is shipping in modern engines and handles zones correctly.

Cron is timezone-tricky

Cron expressions run in the daemon’s local zone unless told otherwise. Pin a TZ explicitly for predictable runs.

ISO 8601 sorts naturally

YYYY-MM-DDTHH:mm:ss sorts correctly as a string. Don’t use US-style MM/DD/YYYY for anything machine-readable.

Beware Y2K38

Signed 32-bit Unix timestamps overflow in 2038. Use 64-bit storage end-to-end for long-lived systems.

Use Cases

When to compute week numbers

Reporting, scheduling, planning.

Sprint planning

Reference sprints by ISO week (Sprint 2026-W21). Math runs in UTC under the hood to dodge DST jumps — local time is only for display. That means scheduling logic and date diffs survive March / November fall-back without the classic off-by-one-hour bug.

DST-safe

Reports

Weekly metrics aligned to ISO weeks. Browser clock is the only source — no external time server, no privacy leak, no rate limit. Pair with NTP-synced server time for high-accuracy use cases, but for human-scale work the browser clock is plenty.

UTC-correct

Editorial calendars

Plan content drops by week number. ISO 8601 output sorts naturally as strings, perfect for filenames (report-2026-01-15.pdf) and log lines that need chronological ordering without parsing. Drop into S3 keys for free time-bucketing.

ISO-sortable

File naming

Reports-2026-W21.pdf for chronological sort. Pairs cleanly with cron, scheduled tasks, and timestamped log analysis. The tool's output drops directly into APScheduler, Linux cron, or GitHub Actions schedule expressions without re-formatting.

spec-grade

Payroll

Many systems use ISO weeks for periods. Output respects the chosen timezone offset (Z vs +05:30) so REST APIs and database TIMESTAMP WITH TIME ZONE columns round-trip cleanly. No ambiguity between "noon UTC" and "noon local".

zone-aware

International collab

ISO is the global default outside the US. Confirms the difference between epoch seconds (10 digits) and milliseconds (13 digits) before you commit code that mis-multiplies by 1000 — a classic bug in cross-language time handling.

epoch-accurate
FAQ

Frequently asked questions

ISO 8601 starts on Monday and Week 1 contains the first Thursday. US starts on Sunday and Week 1 contains January 1. They often disagree at year boundaries.
If Dec 30 or 31 falls on Mon-Wed, ISO treats it as belonging to the next year's week 1.
ISO years have 52 or 53 weeks. 2026 has 53.
1-indexed. Jan 1 = day 1.
No. Calculations run in your browser.
Suggest a tool

Something missing?

Tell us what you need. We ship the top requests every two weeks.

Sent straight to the maintainers · no account needed
47 in queue·8 shipped this month
Request queued. Thanks!