Partager via


IsoChronology.Date Method

Definition

Overloads

Date(ITemporalAccessor)

Obtains an ISO local date from another date-time object.

Date(Int32, Int32, Int32)

Obtains an ISO local date from the proleptic-year, month-of-year and day-of-month fields.

Date(IEra, Int32, Int32, Int32)

Obtains an ISO local date from the era, year-of-era, month-of-year and day-of-month fields.

Date(ITemporalAccessor)

Obtains an ISO local date from another date-time object.

[Android.Runtime.Register("date", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/LocalDate;", "", ApiSince=26)]
public virtual Java.Time.LocalDate? Date (Java.Time.Temporal.ITemporalAccessor? temporal);
[<Android.Runtime.Register("date", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/LocalDate;", "", ApiSince=26)>]
override this.Date : Java.Time.Temporal.ITemporalAccessor -> Java.Time.LocalDate

Parameters

temporal
ITemporalAccessor

the date-time object to convert, not null

Returns

the ISO local date, not null

Attributes

Remarks

Obtains an ISO local date from another date-time object.

This is equivalent to LocalDate#from(TemporalAccessor).

Java documentation for java.time.chrono.IsoChronology.date(java.time.temporal.TemporalAccessor).

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

Date(Int32, Int32, Int32)

Obtains an ISO local date from the proleptic-year, month-of-year and day-of-month fields.

[Android.Runtime.Register("date", "(III)Ljava/time/LocalDate;", "", ApiSince=26)]
public virtual Java.Time.LocalDate? Date (int prolepticYear, int month, int dayOfMonth);
[<Android.Runtime.Register("date", "(III)Ljava/time/LocalDate;", "", ApiSince=26)>]
override this.Date : int * int * int -> Java.Time.LocalDate

Parameters

prolepticYear
Int32

the ISO proleptic-year

month
Int32

the ISO month-of-year

dayOfMonth
Int32

the ISO day-of-month

Returns

the ISO local date, not null

Attributes

Remarks

Obtains an ISO local date from the proleptic-year, month-of-year and day-of-month fields.

This is equivalent to LocalDate#of(int, int, int).

Java documentation for java.time.chrono.IsoChronology.date(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

Date(IEra, Int32, Int32, Int32)

Obtains an ISO local date from the era, year-of-era, month-of-year and day-of-month fields.

[Android.Runtime.Register("date", "(Ljava/time/chrono/Era;III)Ljava/time/LocalDate;", "", ApiSince=26)]
public Java.Time.LocalDate? Date (Java.Time.Chrono.IEra? era, int yearOfEra, int month, int dayOfMonth);
[<Android.Runtime.Register("date", "(Ljava/time/chrono/Era;III)Ljava/time/LocalDate;", "", ApiSince=26)>]
override this.Date : Java.Time.Chrono.IEra * int * int * int -> Java.Time.LocalDate

Parameters

era
IEra

the ISO era, not null

yearOfEra
Int32

the ISO year-of-era

month
Int32

the ISO month-of-year

dayOfMonth
Int32

the ISO day-of-month

Returns

the ISO local date, not null

Attributes

Remarks

Obtains an ISO local date from the era, year-of-era, month-of-year and day-of-month fields.

Java documentation for java.time.chrono.IsoChronology.date(java.time.chrono.Era, 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