Year​Format Year​Format Year​Format Enum


Specifies the intended format for the year in a DateTimeFormatter object.

public enum YearFormatpublic enum YearFormatPublic Enum YearFormat
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Abbreviated Abbreviated Abbreviated

Display an abbreviated version of the year (for example, "11" for Gregorian 2011).

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

Display the year in its entirety (for example, "2011" for Gregorian 2011).

None None None

Do not display the year.