System::Globalization::Calendar::GetYear method

Calendar::GetYear method

Gets year for the specified time point.

virtual int System::Globalization::Calendar::GetYear(DateTime time) const
ParameterTypeDescription
timeDateTimeTime and date to extract data from.

ReturnValue

Year in the time point passed.

See Also