core-ktx / androidx.time / java.time.LocalDate / component3

component3

inline operator fun LocalDate.component3(): Int

Return the day (of the month) of this LocalDate.

This method allows to use destructuring declarations when working with dates, for example:

val (year, month, day) = myLocalDate

See Also

LocalDate.getDayOfMonth