This document is archived and information here might be outdated.  Recommended version.


ITime2.WeekOfYear Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

ITime2.WeekOfYear Property

The week number of the year, starting with 1 for first week of the year. Use startDayOfWeek=1 to specify that weeks start on Sunday, and 2 on Monday.

[Visual Basic .NET]
Public Function get_WeekOfYear ( _
    ByVal startDayOfWeek As Short _
) As Short
[C#]
public short get_WeekOfYear (
    short startDayOfWeek
);
[C++]
HRESULT get_WeekOfYear(
  short startDayOfWeek,
  short* weekNumber
);
[C++]

Parameters startDayOfWeek [in] startDayOfWeek is a parameter of type short weekNumber [out, retval] weekNumber is a parameter of type short

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

ITime2 Interface