Skip to main content

addyears - script and chart function

This function returns the date occurring n years after startdate or, if n is negative, the date occurring n years before startdate.

Syntax:  

AddYears(startdate, n)

Return data type: dual

Arguments:  

Argument Description
startdate

The start date as a time stamp, for example '2012-10-12'.

n Number of years as a positive or negative integer.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!