If the date is already the date passed in, then this
is returned.
To set a single field use the properties, for example:
DateTime set = monthOfYear().setCopy(6);@param year the new year value @param monthOfYear the new monthOfYear value @param dayOfMonth the new dayOfMonth value @return a copy of this datetime with a different date @throws IllegalArgumentException if any value if invalid
|
|
|
|
|
|