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 information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?