<nve-format-datetime>
Properties
IANA time zone identifier (such as 'America/New_York', 'UTC').
string
default
Time zone name display: 'long' | 'short'. Use it with granular options only; preset styles ignore it.
long
short
Preset time formatting style: 'full' | 'long' | 'medium' | 'short'. Preset styles take precedence over granular date and time part options.
full
long
medium
short
Preset date formatting style: 'full' | 'long' | 'medium' | 'short'. Preset styles take precedence over granular date and time part options.
full
long
medium
short
Second representation: 'numeric' | '2-digit'.
numeric
2-digit
Minute representation: 'numeric' | '2-digit'.
numeric
2-digit
Hour representation: 'numeric' | '2-digit'.
numeric
2-digit
Day representation: 'numeric' | '2-digit'.
numeric
2-digit
Month representation: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow'.
numeric
2-digit
long
short
narrow
Year representation: 'numeric' | '2-digit'.
numeric
2-digit
Weekday representation: 'long' | 'short' | 'narrow'.
long
short
narrow
Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default.
string
default
Optional date string for values supplied by JavaScript or bound data. By default, the component formats the element's text content, which also serves as the SSR fallback. When both are present, this property takes precedence.
string
default
Slots
Date string to format (such as 2023-07-28T04:20:17.434Z). Serves as fallback before hydration.