Returns a copy of this {@code LocalDate} with the day-of-month altered.
!(p)
If the resulting date is invalid, 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 result, from 1 to 28-31
@return a {@code LocalDate} based on this date 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-year
Returns a copy of this {@code LocalDate} with the day-of-month altered. !(p) If the resulting date is invalid, 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 result, from 1 to 28-31 @return a {@code LocalDate} based on this date 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-year