Skip to content

dateTime::addYears

addYears(dateTime: DateTime, years: Integer)

ParameterTypeDescription
dateTimeDateTime
yearsInteger

Returns

(DateTime) A new DateTime with years added.