DateTimeFormatter.IncludeYear 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 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.