Retrieves the year part of this instance.
[Visual Basic] Public ReadOnly Property Year As Integer [C#] public int Year {get;} [C++] public: __property int get_Year(); [JScript] public function get Year() : int;
Read-only.
The Year property returns value that is an 32-bit signed integer (int) between 1 and 9999 that represents the portion of the year of this instance of DateTime.
DateTime Structure | DateTime Members | System Namespace | Int32 | Calendar