YearFormat enumeration

This topic has not yet been rated - Rate this topic

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

Syntax


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

Attributes

VersionAttribute(NTDDI_WIN8)

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

Namespace

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

Metadata

Windows.winmd

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.