DateFormatOptions
Settings for the formatDate
and parseDate
functions.
For a runnable example, refer to the article on date and number formatting and parsing.
Name | Type | Default | Description |
---|---|---|---|
date? |
|
Specifies which of the locale | |
datetime? |
|
Specifies which of the locale | |
day? |
|
Specifies how the day of the month will be formatted. | |
era? |
|
Specifies how the date era will be formatted. | |
hour? |
|
Specifies how the hours will be formatted. | |
hour12? |
|
Specifies whether a 12-hour time-set will be used for the formatting. | |
minute? |
|
Specifies how the minutes will be formatted. | |
month? |
|
Specifies how the date month will be formatted. | |
pattern? |
|
Defines the exact pattern that will be used to format the date. | |
second? |
|
Specifies how the seconds will be formatted. | |
skeleton? |
|
Defines the skeleton format that is used to get the pattern from the
| |
time? |
|
Specifies which of the locale | |
timeZoneName? |
|
Specifies how the time-zone will be formatted. | |
weekday? |
|
Specifies how the day of the week will be formatted. | |
year? |
|
Specifies how the date year will be formatted. |