Sunny
internal expect fun formatDate(value: Long, format: String): String
kotlin.js.Date
kotlinx-datetime
Andrey Chernov
Mustafa Ozhan
fun Instant.toDateString( timeZone: TimeZone = TimeZone.currentSystemDefault() ) = toLocalDateTime(timeZone).run { "${hour.doubleDigits()}:${minute.doubleDigits()} " + "${dayOfMonth.doubleDigits()}.${monthNumber.doubleDigits()}.${year.doubleDigits()}" }
doubleDigits
fun Int.doubleDigits() = if (this <= BIGGEST_DIGIT) "0$this" else "$this"
A modern programming language that makes developers happier.