DateFormatter

interface DateFormatter

An interface that allows to format date-time objects as strings.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun formatDate(date: Date?): String

Formats the given date as a String.

Link copied to clipboard
abstract fun formatRelativeTime(date: Date?): String

Formats the given date as a relative time string.

Link copied to clipboard
abstract fun formatTime(date: Date?): String

Formats the given time as a String.