Android.Text.Format.DateUtils.FormatDateRange Method
Formats a date or a time range according to the local conventions.

Syntax

[Android.Runtime.Register("formatDateRange", "(Landroid/content/Context;Ljava/util/Formatter;JJI)Ljava/util/Formatter;", "")]
public static Java.Util.Formatter FormatDateRange (Android.Content.Context context, Java.Util.Formatter formatter, long startMillis, long endMillis, [Android.Runtime.GeneratedEnum] FormatStyleFlags flags)

Parameters

context
the context is required only if the time is shown
formatter
the Formatter used for formatting the date range. Note: be sure to call setLength(0) on StringBuilder passed to the Formatter constructor unless you want the results to accumulate.
startMillis
the start time in UTC milliseconds
endMillis
the end time in UTC milliseconds
flags
a bit mask of options See DateUtils.FormatDateRange(Android.Content.Context, Java.Util.Formatter, Java.Util.Formatter, Java.Util.Formatter, Java.Util.Formatter, Java.Util.Formatter)

Returns

Documentation for this section has not yet been entered.

Remarks

Formats a date or a time range according to the local conventions.

Note that this is a convenience method for formatting the date or time range in the local time zone. If you want to specify the time zone please use DateUtils.FormatDateRange(Android.Content.Context, Java.Util.Formatter, Java.Util.Formatter, Java.Util.Formatter, Java.Util.Formatter, Java.Util.Formatter).

[Android Documentation]

Requirements

Namespace: Android.Text.Format
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5