format

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

Converts this date to String using format for representing it