Language

Calendar.Builder.SetWeekDate(Int32, Int32, Int32) Method

Definition

Sets the week-based date parameters to the values with the given date specifiers - week year, week of year, and day of week.

[Android.Runtime.Register("setWeekDate", "(III)Ljava/util/Calendar$Builder;", "GetSetWeekDate_IIIHandler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder SetWeekDate(int weekYear, int weekOfYear, int dayOfWeek);
[<Android.Runtime.Register("setWeekDate", "(III)Ljava/util/Calendar$Builder;", "GetSetWeekDate_IIIHandler", ApiSince=26)>]
abstract member SetWeekDate : int * int * int -> Java.Util.Calendar.Builder
override this.SetWeekDate : int * int * int -> Java.Util.Calendar.Builder

Parameters

weekYear
Int32

the week year

weekOfYear
Int32

the week number based on weekYear

dayOfWeek
Int32

the day of week value: one of the constants for the DAY_OF_WEEK field: SUNDAY,..., SATURDAY.

Returns

this Calendar.Builder

Attributes

Remarks

Sets the week-based date parameters to the values with the given date specifiers - week year, week of year, and day of week. If the specified calendar doesn't support week dates, the build method will throw an IllegalArgumentException.

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

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