DateTimeFormatter.Template Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.