Click or drag to resize
DateTimeYear Property
Gets the year component of the date represented by this instance.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public int Year { get; }

Return Value

Type: Int32
The year, between 1 and 9999.
See Also