YearFormat enumeration

Applies to Windows and Windows Phone

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

Syntax


var value = Windows.Globalization.DateTimeFormatting.YearFormat.none;

Attributes

[Version(0x06020000)]

Members

The YearFormat enumeration has these members.

MemberValueDescription
None | none0

Do not display the year.

Default | default1

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 | abbreviated2

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

Full | full3

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization.DateTimeFormatting
Windows::Globalization::DateTimeFormatting [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft