formatDate

fun formatDate(date: Date): String

Formats a Date as an ISO-8601-like UTC string (first 19 chars + Z) for display or logging.

Parameters

date

Instant to format using the system default zone then normalized for output.