ThaiBuddhistCalendar: GetWeekOfYear

GetWeekOfYear

Returns the week of the year that includes the date in the specified Date or CorDateTime.



 Public Function GetWeekOfYear(
	  ByRef Time As Variant,
	  ByVal Rule As CalendarWeekRule,
	  ByVal FirstDayOfWeek As DayOfWeek ) As Long

Parameters

Time
[ByRef] Variant. The Date or CorDateTime to read.
Rule
[ByVal] CalendarWeekRule. One of the CalendarWeekRule values that defines a calendar week.
FirstDayOfWeek
[ByVal] DayOfWeek. One of the DayOfWeek values that represents the first day of the week.

Return Values

Long -  A 1-based positive integer that represents the week of the year that includes the date in the time parameter.

See Also

Project CorLib Overview

Class ThaiBuddhistCalendar Overview