formatDate

fun DateFormatter.formatDate(date: Date?): String

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