core-ktx / androidx.time / java.time.MonthDay / component2

component2

inline operator fun MonthDay.component2(): Int

Return the day component of this MonthDay.

This method allows to use destructuring declarations when working with month-days, for example:

val (month, day) = myMonthDay

See Also

MonthDay.getDayOfMonth