formatRelativeDate

abstract fun formatRelativeDate(date: Date): String

Returns a relative date string for the given date. A normal implementation of this method would return a string like "Yesterday", "A day ago", ... It is used to format the date of the separator in the message list.

Return

The formatted relative date string.

Parameters

date

The Date to format as a relative date string.