GetWeekOfYear()

Calendar::GetWeekOfYear(DateTime, CalendarWeekRule, DayOfWeek) const 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

Arguments

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.

Return Value

Year week number in the time point passed.

See Also