atDay

fun YearMonth.atDay(day: Int): LocalDate

Combines this year-month with a day-of-month to create a LocalDate. This returns a LocalDate with the year and month from this object, and the provided day-of-month.

Return

The resulting LocalDate.

Parameters

day

The day-of-month to use, from 1 to 31.

Throws

if the day-of-month is invalid for the year and month.