NONE
No padding during formatting. Parsing does not require padding, but it is allowed.
Samples
import kotlinx.datetime.*
import kotlinx.datetime.format.*
import kotlin.test.*
fun main() {
//sampleStart
// Defining a custom format that removes padding requirements
val format = LocalDate.Format {
monthNumber(Padding.NONE)
char('/')
dayOfMonth()
char(' ')
year()
}
val leoFirstReignStart = LocalDate(457, 2, 7)
check(leoFirstReignStart.format(format) == "2/07 0457")
// providing leading zeros on parsing is not required, but allowed:
check(LocalDate.parse("2/07 0457", format) == leoFirstReignStart)
check(LocalDate.parse("02/07 0457", format) == leoFirstReignStart)
//sampleEnd
}