number

The number of the Month. January is 1, December is 12.

Samples

import kotlinx.datetime.*
import kotlin.test.*

fun main() { 
   //sampleStart 
   // Getting the number of a month
check(Month.JANUARY.number == 1)
check(Month.FEBRUARY.number == 2)
// ...
check(Month.DECEMBER.number == 12) 
   //sampleEnd
}