DateTimeFormatter.Languages | languages property

Applies to Windows and Windows Phone

Gets the priority list of language identifiers that is used when formatting dates and times.

Syntax


var languages = dateTimeFormatter.languages;

Property value

Type: IVectorView<String> [JavaScript/C++] | System.Collections.Generic.IReadOnlyList<String> [.NET]

The list of languages that is used.

Starting in Windows 8.1: Language tags can support Unicode extensions. See the Remarks for the DateTimeFormatter(String, IIterable(String)) constructor.

Remarks

Initialize this class with a BCP-47 language tag. For example, to work with the best current user-preferred language, pass in the top value from Windows.System.UserProfile.GlobalizationPreferences.

Note  If your app passes language tags from this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

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

See also

DateTimeFormatter

 

 

Show:
© 2014 Microsoft