Returns the year calculated date with the source date and the specified amount
Optional
the date to inspect
the amount to add, negative number means minus
the year calculated date with the source date and the specified amount
addYear(new Date(2023, 8, 30), 1); // Date(2024, 8, 30) Copy
addYear(new Date(2023, 8, 30), 1); // Date(2024, 8, 30)
Returns the year calculated date with the source date and the specified amount