Version

WeekNumber Property

Gets/sets the number that identifies the week of the year. Valid range of values is 1 to 53 and -53 to -1.
Syntax
'Declaration
 
Public Property WeekNumber As Integer
public int WeekNumber {get; set;}
Remarks

WeekNumber identifies the week in the year. Valid values are 1 to 53 and -53 to -1. A negative value indicates the n'th week to the end of the year where 'n' is the absolute value of the negative value. For example, -1 specifies the last week of the year. Likewise -10 specifies the 10th to the last week of the year.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also