format

fun Date.format(pattern: String = "dd.MM.yyyy HH:mm", locale: Locale = Locale.getDefault()): String