Skip to content
BigBang

Popular

    ↑↓Navigate↵OpenEscClose
    TR

    Components

    DateTimeText

    A date, a time or a relative time in a time element, written with Intl in the Provider language.

    Storybook
    Storybook
    Source
    Source

    DateTimeText is a <time> element; its datetime attribute holds the ISO 8601 value. Screen readers read the visible text.

    DateTimeText takes no focus.

    None.

    Example Output
    datetime “8 Oct 2026, 14:30”
    relative “2 hours ago”

    Relative time refreshes are not announced, so the page does not keep talking.

    The text takes its colour from its surroundings, which keep their text contrast.

    Criterion How DateTimeText meets it What product teams must do
    1.3.1 Info and relationships A machine-readable value with <time datetime>. —
    3.1.2 Language of parts The format follows the Provider language. Match the Provider language to the page language.

    title is seen only with a mouse; if the exact time matters, use an exact format instead of relative.