YearFormat Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the intended format for the year in a DateTimeFormatter object.
public enum class YearFormat
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class YearFormat
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum YearFormat
var value = Windows.Globalization.DateTimeFormatting.YearFormat.none
Public Enum YearFormat
- Inheritance
-
YearFormat
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
Name | Value | Description |
---|---|---|
None | 0 | Do not display the year. |
Default | 1 | 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. |
Abbreviated | 2 | Display an abbreviated version of the year (for example, "11" for Gregorian 2011). |
Full | 3 | Display the year in its entirety (for example, "2011" for Gregorian 2011). |