withYear abstract method

Date withYear(
  1. int year
)

Make a new date object with changed year

Original date object remains unchanged

This method is NOT safe

Throws DateException on problems

Note: For changing at once use copy() methods

Note: You can chain methods

Implementation

Date withYear(int year);