Time
The time component represents a specific date, time, or duration. Use time to display delivery estimates, order dates, or scheduling information with both a human-readable format and a machine-readable value.
The text between the tags controls the visible display format. For general text content, use text.
Supported targets
- customer-account.
footer. render-after - customer-account.
order-index. announcement. render - customer-account.
order-index. block. render - customer-account.
order-status. announcement. render - customer-account.
order-status. block. render - customer-account.
order-status. cart-line-item. render-after - customer-account.
order-status. cart-line-list. render-after - customer-account.
order-status. customer-information. render-after - customer-account.
order-status. fulfillment-details. render-after - customer-account.
order-status. payment-details. render-after - customer-account.
order-status. return-details. render-after - customer-account.
order-status. unfulfilled-items. render-after - customer-account.
order. action. menu-item. render - customer-account.
order. action. render - customer-account.
order. page. render - customer-account.
page. render - customer-account.
profile. addresses. render-after - customer-account.
profile. announcement. render - customer-account.
profile. block. render - customer-account.
profile. company-details. render-after - customer-account.
profile. company-location-addresses. render-after - customer-account.
profile. company-location-payment. render-after - customer-account.
profile. company-location-staff. render-after - customer-account.
profile. payment. render-after
Supported targets
- customer-account.
footer. render-after - customer-account.
order-index. announcement. render - customer-account.
order-index. block. render - customer-account.
order-status. announcement. render - customer-account.
order-status. block. render - customer-account.
order-status. cart-line-item. render-after - customer-account.
order-status. cart-line-list. render-after - customer-account.
order-status. customer-information. render-after - customer-account.
order-status. fulfillment-details. render-after - customer-account.
order-status. payment-details. render-after - customer-account.
order-status. return-details. render-after - customer-account.
order-status. unfulfilled-items. render-after - customer-account.
order. action. menu-item. render - customer-account.
order. action. render - customer-account.
order. page. render - customer-account.
page. render - customer-account.
profile. addresses. render-after - customer-account.
profile. announcement. render - customer-account.
profile. block. render - customer-account.
profile. company-details. render-after - customer-account.
profile. company-location-addresses. render-after - customer-account.
profile. company-location-payment. render-after - customer-account.
profile. company-location-staff. render-after - customer-account.
profile. payment. render-after
Anchor to PropertiesProperties
Configure the following properties on the time component.
- Anchor to dateTimedateTimedateTimestringstringDefault: ''Default: ''
The machine-readable date and/or time value for the element. Use this to provide a datetime string that browsers, search engines, and assistive technologies can parse for improved semantics and functionality.
The value must be a valid datetime string, such as
2024-01-15,14:30, or.- Anchor to idididstringstring
A unique identifier for the element. Use this to reference the element in JavaScript, link labels to form controls, or target specific elements for styling or scripting.
Anchor to ExamplesExamples
Anchor to Show a date with a machine-readable labelShow a date with a machine-readable label
Format a date for display with human-friendly text and machine-readable markup. This example renders an s-time element with a dateTime attribute for accessibility and a formatted date string.
Show a date with a machine-readable label

html
Anchor to Show a timestampShow a timestamp
Display a time-of-day value with an ISO 8601 timestamp for machine readability. This example shows a "last updated" indicator with both a human-friendly label and a full datetime value.
html
Anchor to Display a date alongside textDisplay a date alongside text
Combine a short label with the date customers care about most. This example uses s-time with dateTime for a parseable delivery estimate and readable surface text.
html
Anchor to Best practicesBest practices
- Always set dateTime: Provide a valid ISO 8601
dateTimeproperty so assistive technology and search engines can parse the value. - Use human-friendly display text: Write the visible text in a format customers expect, such as "October 15, 2026" or "Today, 2:00 PM."
- Include timezone context: When the time is relative to a location, mention the timezone or use UTC to avoid ambiguity.
- Keep formatting consistent: Use the same date and time format across your extension so customers don't have to interpret multiple styles.