NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Calendar.GetWeekOfYear

Returns the week of year for the specified DateTime.

[Visual Basic]
MustOverride Public Function GetWeekOfYear( _
   ByVal time As DateTime _
) As Integer
[C#]
public abstract int GetWeekOfYear(
   DateTime time
);
[C++]
public: virtual int GetWeekOfYear(
   DateTime time
) = 0;
[JScript]
public abstract function GetWeekOfYear(
   time : DateTime
) : int;

Parameters

time
The DateTime instance.

Return Value

The week of year for the specified DateTime.

Remarks

The returned value is an integer between 1 and 52[RB29] .

See Also

Calendar Class | Calendar Members | System.Globalization Namespace