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
| Parameter | Type | Description |
|---|---|---|
| time | DateTime | Time and date to extract data from. |
| rule | CalendarWeekRule | Determines how to determine the first week of the year. |
| first_day_of_week | DayOfWeek | Determines first day of week. |
ReturnValue
Year week number in the time point passed.
See Also
- Class DateTime
- Enum CalendarWeekRule
- Enum DayOfWeek
- Class Calendar
- Namespace System::Globalization
- Library Aspose.PUB for C++