YearFormat
YearFormat
YearFormat
YearFormat
Enum
Definition
Specifies the intended format for the year in a DateTimeFormatter object.
public : enum class YearFormatpublic enum YearFormatPublic Enum YearFormat// You can use this enum in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Fields
| Abbreviated Abbreviated Abbreviated Abbreviated | Display an abbreviated version of the year (for example, "11" for Gregorian 2011). |
| Default Default Default Default | Display the year in the most natural way. It may be abbreviated or full depending on the context, such as the language or calendar that is being used. |
| Full Full Full Full | Display the year in its entirety (for example, "2011" for Gregorian 2011). |
| None None None None | Do not display the year. |