<time>Baseline · Widely available
The <time> HTML element represents a time, such as a calendar date, clock time, or duration. It may include the datetime attribute to translate dates into machine-readable format.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Oct 24, 2017. Widely available since Apr 24, 2020.
Browser support
DesktopChrome
1–61Not supported
62+Supportedsince Oct 17, 2017
Current: 155Edge
12–13Not supported
14+Supportedsince Aug 2, 2016
Current: 154Firefox
1–21Not supported
22+Supportedsince Jun 25, 2013
Current: 157Safari
1–9.1Not supported
10+Supportedsince Sep 20, 2016
Current: 27MobileChrome Android
18–61Not supported
62+Supportedsince Oct 24, 2017
Current: 155Firefox Android
4–21Not supported
22+Supportedsince Jun 25, 2013
Current: 157Safari iOS
1–9.3Not supported
10+Supportedsince Sep 13, 2016
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: HTMLTimeElement.
Feature detection
JS · check before using
const el = document.createElement("time");
if (!(el instanceof HTMLUnknownElement)) {
// <time> is supported
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (4). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| HTMLTimeElement | 62 | 14 | 22 | 10 | 62 | 22 | 10 |
| HTMLTimeElement.dateTime | 62 | 14 | 22 | 10 | 62 | 22 | 10 |
| time | 62 | 14 | 22 | 7 | 62 | 22 | 4 |
| time.datetime | 62 | 14 | 22 | 7 | 62 | 22 | 4 |