DateTimeFormatter.IncludeYear Property


Gets the YearFormat in the template.

 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