DateTimeFormatter.Languages DateTimeFormatter.Languages DateTimeFormatter.Languages DateTimeFormatter.Languages DateTimeFormatter.Languages Property

Definition

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

public : IVectorView<Platform::String> Languages { get; }
IVectorView<winrt::hstring> Languages();
public IReadOnlyList<string> Languages { get; }
Public ReadOnly Property Languages As IReadOnlyList<string>
var iReadOnlyList = dateTimeFormatter.languages;

Property Value

IReadOnlyList<string> IReadOnlyList<string> IReadOnlyList<string>

The list of languages that is used.

Starting in : 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.