System::Globalization::Calendar::GetWeekOfYear method

Calendar::GetWeekOfYear method

Gets week of the year for the specified time point.

virtual int System::Globalization::Calendar::GetWeekOfYear(DateTime time, CalendarWeekRule rule, DayOfWeek first_day_of_week) const
ParameterTypeDescription
timeDateTimeTime and date to extract data from.
ruleCalendarWeekRuleDetermines how to determine the first week of the year.
first_day_of_weekDayOfWeekDetermines first day of week.

ReturnValue

Year week number in the time point passed.

See Also