Date & Time Formats (ISO 8601)

Version 1.0.0 โ€ข Published Jun 09, 2025 00:00 UTC โ€ข by RefPack, International Organization for Standardization (ISO)

A dataset describing standardized date and time formats compliant with ISO 8601, including dates, times, datetimes, durations, intervals, and recurring intervals.

๐Ÿ“† Date & Time Formats (ISO 8601)

๐Ÿงพ Overview

This dataset provides a comprehensive reference of standardized date, time, datetime, duration, and interval formats defined by ISO 8601. These formats are widely used in data exchange, APIs, databases, and systems where consistent and language-independent date/time representation is critical.

The dataset categorizes formats by their function and includes real-world examples for each.

๐Ÿ—‚๏ธ Dataset Structure

The dataset is an array of objects, each representing a distinct ISO 8601 format.

Field Name Data Type Description Required
code Text A unique code identifying the format type. Yes
pattern Text The ISO 8601-compliant pattern string. Yes
type Text Category of the format: date, time, datetime, duration, interval, or recurring. Yes
example Text A real-world example of the format. Yes

๐Ÿ“ Format Categories

  • Date: Calendar dates, ordinal dates, and week dates.
  • Time: Hours, minutes, seconds, and fractional seconds.
  • Datetime: Combinations of date and time with optional timezone.
  • Duration: Time spans using ISO 8601 duration syntax.
  • Interval: Start/end, start/duration, and duration/end formats.
  • Recurring: Repeated intervals using the R notation.

๐Ÿ” Sample Entries

code pattern type example
DATE_CALENDAR YYYY-MM-DD date 2025-06-09
TIME_HOURS_MINUTES HH:MM time 14:30
DATETIME_UTC YYYY-MM-DDTHH:MM:SSZ datetime 2025-06-09T14:30:15Z
DURATION_ISO PnYnMnDTnHnMnS duration P1Y2M10DT2H30M
INTERVAL_START_END start/end interval 2025-06-09T00:00/2025-06-10T00:00
RECURRING_INTERVAL Rn/start/duration recurring R5/2025-06-09T00:00/P1D

๐Ÿงฉ Usage Scenarios

  • Defining format standards for APIs and specifications.
  • Ensuring ISO 8601-compliant datetime input and output in systems.
  • Data validation and schema enforcement for datetime fields.
  • Timezone-agnostic storage and exchange of temporal data.

๐Ÿ”’ Data Integrity

  • All fields are required: code, pattern, type, and example.
  • type must be one of: date, time, datetime, duration, interval, recurring.
  • This dataset adheres to ISO 8601 conventions.

๐Ÿ“Š Metadata & Versioning

  • Dataset ID: iso8601_datetime_formats
  • Packager Version (RefPack): 1.0.0
  • Packaged Date (UTC): 2025-06-09T00:00:00.000Z
  • Title: Date & Time Formats (ISO 8601)
  • Description: A dataset describing standardized date/time formats compliant with ISO 8601.
  • Authors & Contributors:
    • ISO (International Organization for Standardization)
    • RefPack
  • License:
  • Tags: datetime, iso8601, time, date, duration, interval, standard, reference, formatting