DateTimeWithZone.WeekInMonth PropertyDateTimeWithZone.WeekInMonth PropertyDateTimeWithZone::WeekInMonth Property

Gets the week in the month component of this DateTimeWithZoneDateTimeWithZoneDateTimeWithZone.

Syntax

Public ReadOnly Property WeekInMonth As Integer
        Get
public int WeekInMonth { get; }
public:
property int WeekInMonth {
    int get();
}
 

Remarks

ISO 8601 does not define a numbering for weeks within a month. When the w component is used, the convention to be adopted is that each Monday-to-Sunday week is considered to fall within a particular month if its Thursday occurs in that month; the weeks that fall in a particular month under this definition are numbered starting from 1. Thus, for example, 29 January 2013 falls in week 5 because the Thursday of the week (31 January 2013) is the fifth Thursday in January, and 1 February 2013 is also in week 5 for the same reason.