Android.Text.Format.DateUtils.FormatSameDayTimeFormatted Method
Format a date / time such that if the then is on the same day as now, it shows just the time and if it's a different day, it shows just the date.

Syntax

[Android.Runtime.Register("formatSameDayTime", "(JJII)Ljava/lang/CharSequence;", "")]
public static Java.Lang.ICharSequence FormatSameDayTimeFormatted (long then, long now, [Android.Runtime.GeneratedEnum] AbbreviationLength dateStyle, [Android.Runtime.GeneratedEnum] AbbreviationLength timeStyle)

Parameters

then
the date to format
now
the base time
dateStyle
how to format the date portion.
timeStyle
how to format the time portion.

Returns

Documentation for this section has not yet been entered.

Remarks

Format a date / time such that if the then is on the same day as now, it shows just the time and if it's a different day, it shows just the date.

The parameters dateFormat and timeFormat should each be one of Java.Text.DateFormat.Default, Java.Text.DateFormat.Full, Java.Text.DateFormat.Long, Java.Text.DateFormat.Medium or Java.Text.DateFormat.Short

[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