LocalDate.Of 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
| Name | Description |
|---|---|
| Of(Int32, Int32, Int32) |
Obtains an instance of LocalDate from a year, month and day. |
| Of(Int32, Month, Int32) |
Obtains an instance of LocalDate from a year, month and day. |
Of(Int32, Int32, Int32)
Obtains an instance of LocalDate from a year, month and day.
[Android.Runtime.Register("of", "(III)Ljava/time/LocalDate;", "", ApiSince=26)]
public static Java.Time.LocalDate? Of(int year, int month, int dayOfMonth);
[<Android.Runtime.Register("of", "(III)Ljava/time/LocalDate;", "", ApiSince=26)>]
static member Of : int * int * int -> Java.Time.LocalDate
Parameters
- year
- Int32
the year to represent, from MIN_YEAR to MAX_YEAR
- month
- Int32
the month-of-year to represent, from 1 (January) to 12 (December)
- dayOfMonth
- Int32
the day-of-month to represent, from 1 to 31
Returns
the local date, not null
- Attributes
Remarks
Obtains an instance of LocalDate from a year, month and day. This returns a LocalDate with the specified year, month and day-of-month. The day must be valid for the year and month, otherwise an exception will be thrown.
Java reference for java.time.LocalDate.of.
Applies to
Of(Int32, Month, Int32)
Obtains an instance of LocalDate from a year, month and day.
[Android.Runtime.Register("of", "(ILjava/time/Month;I)Ljava/time/LocalDate;", "", ApiSince=26)]
public static Java.Time.LocalDate? Of(int year, Java.Time.Month? month, int dayOfMonth);
[<Android.Runtime.Register("of", "(ILjava/time/Month;I)Ljava/time/LocalDate;", "", ApiSince=26)>]
static member Of : int * Java.Time.Month * int -> Java.Time.LocalDate
Parameters
- year
- Int32
the year to represent, from MIN_YEAR to MAX_YEAR
- month
- Month
the month-of-year to represent, not null
- dayOfMonth
- Int32
the day-of-month to represent, from 1 to 31
Returns
the local date, not null
- Attributes
Remarks
To be added.
Java reference for java.time.LocalDate.of.