DateTimeFormatter.Template Property

Definition

Gets a string representation of this format template.

public:
 property Platform::String ^ Template { Platform::String ^ get(); };
winrt::hstring Template();
public string Template { get; }
var string = dateTimeFormatter.template;
Public ReadOnly Property Template As String

Property Value

String

Platform::String

winrt::hstring

A string that represents this format template. If the DateTimeFormatter object was constructed with a format template or format enumerations, the string can be used to construct the same DateTimeFormatter. If a pattern was used to construct the DateTimeFormatter, this property returns the empty string. See the remarks for the DateTimeFormatter class for a list of valid format templates.

Applies to

See also