Share via


DateTimeFormatter.IncludeYear Property

Definition

Gets the YearFormat in the template.

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

Property Value

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

Applies to