DateTimeFormatter.Template DateTimeFormatter.Template DateTimeFormatter.Template DateTimeFormatter.Template DateTimeFormatter.Template Property

Definition

Gets a string representation of this format template.

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

Property Value

string string string

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.

See also