Share via


IChronology.Date Method

Definition

Overloads

Date(ITemporalAccessor)

Obtains a local date in this chronology from another temporal object.

Date(Int32, Int32, Int32)

Obtains a local date in this chronology from the proleptic-year, month-of-year and day-of-month fields.

Date(IEra, Int32, Int32, Int32)

Obtains a local date in this chronology from the era, year-of-era, month-of-year and day-of-month fields.

Date(ITemporalAccessor)

Obtains a local date in this chronology from another temporal object.

[Android.Runtime.Register("date", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/chrono/ChronoLocalDate;", "GetDate_Ljava_time_temporal_TemporalAccessor_Handler:Java.Time.Chrono.IChronologyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Time.Chrono.IChronoLocalDate? Date (Java.Time.Temporal.ITemporalAccessor? temporal);
[<Android.Runtime.Register("date", "(Ljava/time/temporal/TemporalAccessor;)Ljava/time/chrono/ChronoLocalDate;", "GetDate_Ljava_time_temporal_TemporalAccessor_Handler:Java.Time.Chrono.IChronologyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Date : Java.Time.Temporal.ITemporalAccessor -> Java.Time.Chrono.IChronoLocalDate

Parameters

temporal
ITemporalAccessor

the temporal object to convert, not null

Returns

the local date in this chronology, not null

Attributes

Remarks

Obtains a local date in this chronology from another temporal object.

This obtains a date in this chronology based on the specified temporal. A TemporalAccessor represents an arbitrary set of date and time information, which this factory converts to an instance of ChronoLocalDate.

The conversion typically uses the ChronoField#EPOCH_DAY EPOCH_DAY field, which is standardized across calendar systems.

This method matches the signature of the functional interface TemporalQuery allowing it to be used as a query via method reference, aChronology::date.

Java documentation for java.time.chrono.Chronology.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 a local date in this chronology from the proleptic-year, month-of-year and day-of-month fields.

[Android.Runtime.Register("date", "(III)Ljava/time/chrono/ChronoLocalDate;", "GetDate_IIIHandler:Java.Time.Chrono.IChronologyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Time.Chrono.IChronoLocalDate? Date (int prolepticYear, int month, int dayOfMonth);
[<Android.Runtime.Register("date", "(III)Ljava/time/chrono/ChronoLocalDate;", "GetDate_IIIHandler:Java.Time.Chrono.IChronologyInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Date : int * int * int -> Java.Time.Chrono.IChronoLocalDate

Parameters

prolepticYear
Int32

the chronology proleptic-year

month
Int32

the chronology month-of-year

dayOfMonth
Int32

the chronology day-of-month

Returns

the local date in this chronology, not null

Attributes

Remarks

Obtains a local date in this chronology from the proleptic-year, month-of-year and day-of-month fields.

Java documentation for java.time.chrono.Chronology.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 a local date in this chronology 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/chrono/ChronoLocalDate;", "GetDate_Ljava_time_chrono_Era_IIIHandler:Java.Time.Chrono.IChronology, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public virtual Java.Time.Chrono.IChronoLocalDate? Date (Java.Time.Chrono.IEra? era, int yearOfEra, int month, int dayOfMonth);
[<Android.Runtime.Register("date", "(Ljava/time/chrono/Era;III)Ljava/time/chrono/ChronoLocalDate;", "GetDate_Ljava_time_chrono_Era_IIIHandler:Java.Time.Chrono.IChronology, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Date : Java.Time.Chrono.IEra * int * int * int -> Java.Time.Chrono.IChronoLocalDate
override this.Date : Java.Time.Chrono.IEra * int * int * int -> Java.Time.Chrono.IChronoLocalDate

Parameters

era
IEra

the era of the correct type for the chronology, not null

yearOfEra
Int32

the chronology year-of-era

month
Int32

the chronology month-of-year

dayOfMonth
Int32

the chronology day-of-month

Returns

the local date in this chronology, not null

Attributes

Remarks

Obtains a local date in this chronology from the era, year-of-era, month-of-year and day-of-month fields.

Java documentation for java.time.chrono.Chronology.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