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;JJI)Ljava/lang/String;", "")]
public static string FormatDateRange (Android.Content.Context context, long startMillis, long endMillis, [Android.Runtime.GeneratedEnum] FormatStyleFlags flags)

Parameters

context
the context is required only if the time is shown
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. Using it involves creating an internal Java.Util.Formatter instance on-the-fly, which is somewhat costly in terms of memory and time. This is probably acceptable if you use the method only rarely, but if you rely on it for formatting a large number of dates, consider creating and reusing your own Java.Util.Formatter instance and use the version of DateUtils.FormatDateRange(Android.Content.Context, System.Int64, System.Int64, System.Int64) that takes a 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 3