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
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. |
Return Value
Year week number in the time point passed.
See Also
- Enum CalendarWeekRule
- Enum DayOfWeek
- Class DateTime
- Class Calendar
- Namespace System::Globalization
- Library Aspose.Slides