Sprache

DateIntervalFormat.FormatToValue Method

Definition

Overloads

Name Description
FormatToValue(DateInterval)

Format a DateInterval to produce a FormattedDateInterval.

FormatToValue(Calendar, Calendar)

Format 2 Calendars to produce a FormattedDateInterval.

FormatToValue(ITemporal, ITemporal)

Format two Temporals to produce a FormattedDateInterval.

FormatToValue(DateInterval)

Format a DateInterval to produce a FormattedDateInterval.

[Android.Runtime.Register("formatToValue", "(Landroid/icu/util/DateInterval;)Landroid/icu/text/DateIntervalFormat$FormattedDateInterval;", "GetFormatToValue_Landroid_icu_util_DateInterval_Handler", ApiSince=31)]
public virtual Android.Icu.Text.DateIntervalFormat.FormattedDateInterval? FormatToValue(Android.Icu.Util.DateInterval? dtInterval);
[<Android.Runtime.Register("formatToValue", "(Landroid/icu/util/DateInterval;)Landroid/icu/text/DateIntervalFormat$FormattedDateInterval;", "GetFormatToValue_Landroid_icu_util_DateInterval_Handler", ApiSince=31)>]
abstract member FormatToValue : Android.Icu.Util.DateInterval -> Android.Icu.Text.DateIntervalFormat.FormattedDateInterval
override this.FormatToValue : Android.Icu.Util.DateInterval -> Android.Icu.Text.DateIntervalFormat.FormattedDateInterval

Parameters

dtInterval
DateInterval

DateInterval to be formatted.

Returns

A FormattedDateInterval containing the format result.

Attributes

Remarks

Format a DateInterval to produce a FormattedDateInterval. The FormattedDateInterval exposes field information about the formatted string.

Android reference for android.icu.text.DateIntervalFormat.formatToValue.

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

FormatToValue(Calendar, Calendar)

Format 2 Calendars to produce a FormattedDateInterval.

[Android.Runtime.Register("formatToValue", "(Landroid/icu/util/Calendar;Landroid/icu/util/Calendar;)Landroid/icu/text/DateIntervalFormat$FormattedDateInterval;", "GetFormatToValue_Landroid_icu_util_Calendar_Landroid_icu_util_Calendar_Handler", ApiSince=31)]
public virtual Android.Icu.Text.DateIntervalFormat.FormattedDateInterval? FormatToValue(Android.Icu.Util.Calendar? fromCalendar, Android.Icu.Util.Calendar? toCalendar);
[<Android.Runtime.Register("formatToValue", "(Landroid/icu/util/Calendar;Landroid/icu/util/Calendar;)Landroid/icu/text/DateIntervalFormat$FormattedDateInterval;", "GetFormatToValue_Landroid_icu_util_Calendar_Landroid_icu_util_Calendar_Handler", ApiSince=31)>]
abstract member FormatToValue : Android.Icu.Util.Calendar * Android.Icu.Util.Calendar -> Android.Icu.Text.DateIntervalFormat.FormattedDateInterval
override this.FormatToValue : Android.Icu.Util.Calendar * Android.Icu.Util.Calendar -> Android.Icu.Text.DateIntervalFormat.FormattedDateInterval

Parameters

fromCalendar
Calendar

calendar set to the from date in date interval to be formatted into date interval string

toCalendar
Calendar

calendar set to the to date in date interval to be formatted into date interval string

Returns

A FormattedDateInterval containing the format result.

Attributes

Remarks

Format 2 Calendars to produce a FormattedDateInterval. The FormattedDateInterval exposes field information about the formatted string.

Android reference for android.icu.text.DateIntervalFormat.formatToValue.

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

FormatToValue(ITemporal, ITemporal)

Format two Temporals to produce a FormattedDateInterval.

[Android.Runtime.Register("formatToValue", "(Ljava/time/temporal/Temporal;Ljava/time/temporal/Temporal;)Landroid/icu/text/DateIntervalFormat$FormattedDateInterval;", "GetFormatToValue_Ljava_time_temporal_Temporal_Ljava_time_temporal_Temporal_Handler", ApiSince=37)]
public virtual Android.Icu.Text.DateIntervalFormat.FormattedDateInterval? FormatToValue(Java.Time.Temporal.ITemporal? fromTemporal, Java.Time.Temporal.ITemporal? toTemporal);
[<Android.Runtime.Register("formatToValue", "(Ljava/time/temporal/Temporal;Ljava/time/temporal/Temporal;)Landroid/icu/text/DateIntervalFormat$FormattedDateInterval;", "GetFormatToValue_Ljava_time_temporal_Temporal_Ljava_time_temporal_Temporal_Handler", ApiSince=37)>]
abstract member FormatToValue : Java.Time.Temporal.ITemporal * Java.Time.Temporal.ITemporal -> Android.Icu.Text.DateIntervalFormat.FormattedDateInterval
override this.FormatToValue : Java.Time.Temporal.ITemporal * Java.Time.Temporal.ITemporal -> Android.Icu.Text.DateIntervalFormat.FormattedDateInterval

Parameters

fromTemporal
ITemporal

temporal set to the start of the interval to be formatted into a string

toTemporal
ITemporal

temporal set to the end of the interval to be formatted into a string

Returns

A FormattedDateInterval containing the format result.

Attributes

Remarks

Format two Temporals to produce a FormattedDateInterval. The FormattedDateInterval exposes field information about the formatted string.

Android reference for android.icu.text.DateIntervalFormat.formatToValue.

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