month Name
A month name (for example, "January").
Samples
import kotlinx.datetime.*
import kotlinx.datetime.format.*
import kotlin.test.*
fun main() {
//sampleStart
// Using strings for month names in a custom format
val format = LocalDate.Format {
monthName(MonthNames.ENGLISH_FULL); char(' '); dayOfMonth(); char('/'); year()
}
check(format.format(LocalDate(2021, 1, 13)) == "January 13/2021")
check(format.format(LocalDate(2021, 12, 13)) == "December 13/2021")
//sampleEnd
}