Language

Calendar.Builder.SetWeekDefinition(Int32, Int32) Method

Definition

Sets the week definition parameters to the values given by firstDayOfWeek and minimalDaysInFirstWeek that are used to determine the first week of a year.

[Android.Runtime.Register("setWeekDefinition", "(II)Ljava/util/Calendar$Builder;", "GetSetWeekDefinition_IIHandler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder SetWeekDefinition(int firstDayOfWeek, int minimalDaysInFirstWeek);
[<Android.Runtime.Register("setWeekDefinition", "(II)Ljava/util/Calendar$Builder;", "GetSetWeekDefinition_IIHandler", ApiSince=26)>]
abstract member SetWeekDefinition : int * int -> Java.Util.Calendar.Builder
override this.SetWeekDefinition : int * int -> Java.Util.Calendar.Builder

Parameters

firstDayOfWeek
Int32

the first day of a week; one of Calendar.SUNDAY to Calendar.SATURDAY

minimalDaysInFirstWeek
Int32

the minimal number of days in the first week (1..7)

Returns

this Calendar.Builder

Attributes

Remarks

Sets the week definition parameters to the values given by firstDayOfWeek and minimalDaysInFirstWeek that are used to determine the first week of a year. The parameters given by this method have precedence over the default values given by the locale.

Java reference for java.util.Calendar.Builder.setWeekDefinition.

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