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(localDateTime: LocalDateTime?): String

Formats the given date as a String.

Link copied to clipboard
abstract fun formatTime(localTime: LocalTime?): String

Formats the given time as a String.

Extensions

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

Extension to be able to format objects of the deprecated Date type.

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

Extension to be able to format objects of the deprecated Date type.