C-DEngine 5.105

TheCommonUtils..::..GetCalendarweek Method

Returns the Calendar Week for a given DateTime. The calculation is done using Sunday as the first day of the week, and first week as the one with at least four days.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static int GetCalendarweek(
	DateTime datetime
)
Public Shared Function GetCalendarweek ( _
	datetime As DateTime _
) As Integer
public:
static int^ GetCalendarweek(
	DateTime^ datetime
)

Parameters

datetime
Type: DateTime
The date

Return Value

A value from 1 to 52 for the week of the year.