format

fun format(format: String): String
fun format(format: TimeFormat): String

Converts this date to String using format for representing it.