DateIntervalFormat.FormatToValue 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 |
|---|---|
| FormatToValue(DateInterval) |
Format a DateInterval to produce a FormattedDateInterval. |
| FormatToValue(Calendar, Calendar) |
Format 2 Calendars 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.