date | Date | string | number | undefined | undefined | The moment to show: an ISO 8601 string or a millisecond timestamp in markup, or a Date from script. |
date-style | FormatDateStyle | '' | — | Preset length of the date: full ("Wednesday, October 14, 2026"), long, medium or short ("10/14/26"). |
time-style | FormatDateStyle | '' | — | Preset length of the time: full, long, medium ("3:05:09 PM") or short ("3:05 PM"). Empty shows no time unless a time field is set. |
weekday | FormatDateTextWidth | '' | — | Day of the week: long ("Wednesday"), short ("Wed") or narrow ("W"). Ignored when a style is set. |
era | FormatDateTextWidth | '' | — | Era: long ("Anno Domini"), short ("AD") or narrow ("A"). Ignored when a style is set. |
year | FormatDateNumeric | '' | — | Year: numeric ("2026") or 2-digit ("26"). Ignored when a style is set. |
month | FormatDateMonth | '' | — | Month: numeric, 2-digit, long ("October"), short ("Oct") or narrow ("O"). Ignored when a style is set. |
day | FormatDateNumeric | '' | — | Day of the month: numeric or 2-digit. Ignored when a style is set. |
hour | FormatDateNumeric | '' | — | Hour: numeric or 2-digit. Ignored when a style is set. |
minute | FormatDateNumeric | '' | — | Minute: numeric or 2-digit. Ignored when a style is set. |
second | FormatDateNumeric | '' | — | Second: numeric or 2-digit. Ignored when a style is set. |
time-zone-name | FormatDateTimeZoneName | '' | — | Time zone name: short ("PST"), long, shortOffset ("GMT-8"), longOffset, shortGeneric or longGeneric. Ignored when a style is set. |
time-zone | string | — | IANA time zone the date is shown in, such as UTC or Europe/Paris. Empty uses the reader's time zone. |
hour-format | FormatDateHourFormat | auto | Clock: auto follows the locale, 12 shows AM/PM, 24 a 24-hour clock. |
locale | string | — | BCP 47 locale of the text. Empty uses the nearest lang attribute, then the browser's language. |