day Of Week
A day-of-week name (for example, "Thursday").
Samples
import kotlinx.datetime.*
import kotlinx.datetime.format.*
import kotlin.test.*
fun main() {
//sampleStart
// Using strings for day-of-week names in a custom format
val format = LocalDate.Format {
dayOfWeek(DayOfWeekNames.ENGLISH_ABBREVIATED); char(' '); dayOfMonth(); char('/'); monthNumber(); char('/'); year()
}
check(format.format(LocalDate(2021, 1, 13)) == "Wed 13/01/2021")
check(format.format(LocalDate(2021, 12, 13)) == "Mon 13/12/2021")
//sampleEnd
}