This returns a month-day with the specified day-of-month. If the day-of-month is invalid for the month, an exception is thrown.
This instance is immutable and unaffected by this method call. @param dayOfMonth the day-of-month to set in the return month-day, from 1 to 31 @return a {@code MonthDay} based on this month-day with the requested day, not null @throws DateTimeException if the day-of-month value is invalid @throws DateTimeException if the day-of-month is invalid for the month
|
|