DateTimeFormatter.IncludeYear DateTimeFormatter.IncludeYear DateTimeFormatter.IncludeYear DateTimeFormatter.IncludeYear DateTimeFormatter.IncludeYear Property

Definition

Gets the YearFormat in the template.

public : YearFormat IncludeYear { get; }
YearFormat IncludeYear();
public YearFormat IncludeYear { get; }
Public ReadOnly Property IncludeYear As YearFormat
var yearFormat = dateTimeFormatter.includeYear;

Property Value

Specifies whether the year is included. If it is, this format specifies the format for the year in the template.