Mono Class Library: System.DateTime Overview | Members

System.DateTime.Year Property

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

public int Year { get; }

Value

A int between 1 and 9999 set to the year component of the current instance.

Remarks

This property is read-only.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0