Language

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

Definition

Sets the date field parameters to the values given by year, month, and dayOfMonth.

[Android.Runtime.Register("setDate", "(III)Ljava/util/Calendar$Builder;", "GetSetDate_IIIHandler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder SetDate(int year, int month, int dayOfMonth);
[<Android.Runtime.Register("setDate", "(III)Ljava/util/Calendar$Builder;", "GetSetDate_IIIHandler", ApiSince=26)>]
abstract member SetDate : int * int * int -> Java.Util.Calendar.Builder
override this.SetDate : int * int * int -> Java.Util.Calendar.Builder

Parameters

year
Int32

the YEAR value

month
Int32

the MONTH value (the month numbering is 0-based).

dayOfMonth
Int32

the DAY_OF_MONTH value

Returns

this Calendar.Builder

Attributes

Remarks

Sets the date field parameters to the values given by year, month, and dayOfMonth. This method is equivalent to a call to:

setFields(Calendar.YEAR, year,
          Calendar.MONTH, month,
          Calendar.DAY_OF_MONTH, dayOfMonth);

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

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