public static Date addDays ( Date date , int numberOfDays ) { return Date . from ( date . toInstant ( ) . plus ( numberOfDays , ChronoUnit . DAYS ) ) ; }
Adds a number of days to a date returning a new object . The original date object is unchanged .