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. |