GetWeekOfYear
Returns the week of the year that the specified date belongs to.
Public Function GetWeekOfYear(
ByRef Time As Variant,
ByVal Rule As CalendarWeekRule,
ByVal FirstDayOfWeek As DayOfWeek ) As Long
Parameters
- Time
-
[ByRef]
Variant.
The date to find the week it belongs.
- Rule
-
[ByVal]
CalendarWeekRule.
Rule to decide what constitutes the first week of the year.
- FirstDayOfWeek
-
[ByVal]
DayOfWeek.
Defines which week day is the start of a new week.
Return Values
Long - The week that the date belongs to.
See Also
Project CorLib Overview
Class HijriCalendar Overview