format

fun format(format: String): String
fun format(format: DateFormat): String

Converts this date to String using format for representing it.