Returns a copy of this {@code MonthDay} with the day-of-month altered.
!(p)
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.
!(p)
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,
or if the day-of-month is invalid for the month
Returns a copy of this {@code MonthDay} with the day-of-month altered. !(p) 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. !(p) 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, or if the day-of-month is invalid for the month