Modify a datetime or date to a new year.

Declaration

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

Parameters

datetime (type: datetime)
Any datetime.
new_year (type: number)
The new year that gets updated in the datetime.
date (type: date)
Any date.

Return Values

datetime (type: datetime)
The resulting datetime by taking the base and adding the update values.
date (type: date)
The resulting date by taking the base and adding the update values.

Was this article helpful?

0 out of 0 found this helpful

Add comment

Please sign in to leave a comment.