Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_ayears() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_AYEARS()

 DESCRIPTION

 C_AYEARS() adds or subtracts a given number of years from a specified
 date, returning a new date.

 SYNTAX

 C_AYEARS(date, years)

 PARAMETERS

 date (D/C) is the date in which the addition or subtraction is
 performed.  The date argument may be specified as either a date
 variable or a character string ("DD/MM/YY").

 years (N) is the number of years to add or subtract from the date.
 Specify a positive number (+) to add years to the date or a
 negative number (-) to subtract years from the date.

 RETURNS

 C_AYEARS() returns a date variable.

 EXAMPLES

 date1 = ctod("01/01/90")

 ? c_ayears(date1,1)    --> 01/01/91    && Add 1 year
 ? c_ayears(date1,-1)   --> 01/01/89    && Subtract 1 year
 ? c_ayears(date1,10)   --> 01/01/00    && Add 10 years (01/01/2000)
 ? c_ayears(date1,-10)  --> 01/01/80    && Subtract 10 years


See Also: C_ADAYS() C_AMONTHS()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson