Calendar.Set Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Set(CalendarField, Int32) |
Sets the given calendar field to the given value. |
Set(Int32, Int32, Int32) |
Sets the values for the calendar fields |
Set(Int32, Int32, Int32, Int32, Int32) |
Sets the values for the calendar fields |
Set(Int32, Int32, Int32, Int32, Int32, Int32) |
Sets the values for the fields |
Set(CalendarField, Int32)
Sets the given calendar field to the given value.
[Android.Runtime.Register("set", "(II)V", "GetSet_IIHandler")]
public virtual void Set (Java.Util.CalendarField field, int value);
[<Android.Runtime.Register("set", "(II)V", "GetSet_IIHandler")>]
abstract member Set : Java.Util.CalendarField * int -> unit
override this.Set : Java.Util.CalendarField * int -> unit
Parameters
- field
- CalendarField
the given calendar field.
- value
- Int32
the value to be set for the given calendar field.
- Attributes
Remarks
Java documentation for java.util.Calendar.set(int, int)
.
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
Set(Int32, Int32, Int32)
Sets the values for the calendar fields YEAR
,
MONTH
, and DAY_OF_MONTH
.
[Android.Runtime.Register("set", "(III)V", "")]
public void Set (int year, int month, int date);
[<Android.Runtime.Register("set", "(III)V", "")>]
member this.Set : int * int * int -> unit
Parameters
- year
- Int32
the value used to set the YEAR
calendar field.
- month
- Int32
the value used to set the MONTH
calendar field.
Month value is 0-based. e.g., 0 for January.
- date
- Int32
the value used to set the DAY_OF_MONTH
calendar field.
- Attributes
Remarks
Java documentation for java.util.Calendar.set(int, int, int)
.
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
Set(Int32, Int32, Int32, Int32, Int32)
Sets the values for the calendar fields YEAR
,
MONTH
, DAY_OF_MONTH
,
HOUR_OF_DAY
, and MINUTE
.
[Android.Runtime.Register("set", "(IIIII)V", "")]
public void Set (int year, int month, int date, int hourOfDay, int minute);
[<Android.Runtime.Register("set", "(IIIII)V", "")>]
member this.Set : int * int * int * int * int -> unit
Parameters
- year
- Int32
the value used to set the YEAR
calendar field.
- month
- Int32
the value used to set the MONTH
calendar field.
Month value is 0-based. e.g., 0 for January.
- date
- Int32
the value used to set the DAY_OF_MONTH
calendar field.
- hourOfDay
- Int32
the value used to set the HOUR_OF_DAY
calendar field.
- minute
- Int32
the value used to set the MINUTE
calendar field.
- Attributes
Remarks
Java documentation for java.util.Calendar.set(int, int, int, int, int)
.
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
Set(Int32, Int32, Int32, Int32, Int32, Int32)
Sets the values for the fields YEAR
, MONTH
,
DAY_OF_MONTH
, HOUR_OF_DAY
, MINUTE
, and
SECOND
.
[Android.Runtime.Register("set", "(IIIIII)V", "")]
public void Set (int year, int month, int date, int hourOfDay, int minute, int second);
[<Android.Runtime.Register("set", "(IIIIII)V", "")>]
member this.Set : int * int * int * int * int * int -> unit
Parameters
- year
- Int32
the value used to set the YEAR
calendar field.
- month
- Int32
the value used to set the MONTH
calendar field.
Month value is 0-based. e.g., 0 for January.
- date
- Int32
the value used to set the DAY_OF_MONTH
calendar field.
- hourOfDay
- Int32
the value used to set the HOUR_OF_DAY
calendar field.
- minute
- Int32
the value used to set the MINUTE
calendar field.
- second
- Int32
the value used to set the SECOND
calendar field.
- Attributes
Remarks
Java documentation for java.util.Calendar.set(int, int, int, int, int, int)
.
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.