DateOnly.Year Property

Definition

Gets the year component of the date represented by this instance.

public int Year { get; }

Property Value

A number that represents the year component of the date.

Applies to

Produkt Verze
.NET 6, 7, 8, 9