Returns the year in the specified DateTime object.
Syntax
Parameters
- time
-
The DateTime to read.
Returns
An integer from 1 through 9378 that represents the year in the specified DateTime.
Remarks
Requirements
Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0