Your Airkit journey starts here

UPDATE_YEAR

Modify a datetime or date to a new year.

Declaration

UPDATE_YEAR(datetime, new_year) -> datetime
UPDATE_YEAR(date, new_year) -> date

Parameters

datetime
datetime -Any datetime.
new_year
number -The new year that gets updated in the datetime.
date
date -Any date.

Return Values

datetime
datetime -The resulting datetime by taking the base and adding the update values.
date
date -The resulting date by taking the base and adding the update values.