다음을 통해 공유


Calendar.DayOfWeekInMonth Field

Definition

Caution

This constant will be removed in the future version. Use Java.Util.CalendarField enum directly instead of this field.

Field number for get and set indicating the ordinal number of the day of the week within the current month.

[Android.Runtime.Register("DAY_OF_WEEK_IN_MONTH")]
[System.Obsolete("This constant will be removed in the future version. Use Java.Util.CalendarField enum directly instead of this field.", true)]
public const Java.Util.CalendarField DayOfWeekInMonth = 8;
[<Android.Runtime.Register("DAY_OF_WEEK_IN_MONTH")>]
[<System.Obsolete("This constant will be removed in the future version. Use Java.Util.CalendarField enum directly instead of this field.", true)>]
val mutable DayOfWeekInMonth : Java.Util.CalendarField

Field Value

Value = 8
Attributes

Remarks

Field number for get and set indicating the ordinal number of the day of the week within the current month. Together with the DAY_OF_WEEK field, this uniquely specifies a day within a month. Unlike WEEK_OF_MONTH and WEEK_OF_YEAR, this field's value does <em>not</em> depend on getFirstDayOfWeek() or getMinimalDaysInFirstWeek(). DAY_OF_MONTH 1 through 7 always correspond to DAY_OF_WEEK_IN_MONTH 1; 8 through 14 correspond to DAY_OF_WEEK_IN_MONTH 2, and so on. DAY_OF_WEEK_IN_MONTH 0 indicates the week before DAY_OF_WEEK_IN_MONTH 1. Negative values count back from the end of the month, so the last Sunday of a month is specified as DAY_OF_WEEK = SUNDAY, DAY_OF_WEEK_IN_MONTH = -1. Because negative values count backward they will usually be aligned differently within the month than positive values. For example, if a month has 31 days, DAY_OF_WEEK_IN_MONTH -1 will overlap DAY_OF_WEEK_IN_MONTH 5 and the end of 4.

Java documentation for java.util.Calendar.DAY_OF_WEEK_IN_MONTH.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also