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_amonths() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_AMONTHS()

 DESCRIPTION

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

 SYNTAX

 C_AMONTHS(date, (+/-)months)

 PARAMETERS

 date (D/C) is the date from 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").

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

 RETURNS

 C_AMONTHS returns a date variable.

 EXAMPLES

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

 ? c_amonths(date1,1)    --> 02/01/90     && Add 1 month
 ? c_amonths(date1,-1)   --> 12/01/89     && Subtract 1 month
 ? c_amonths(date1,12)   --> 01/01/91     && Add 12 months
 ? c_amonths(date1,-12)  --> 01/01/89     && Subtract 12 months


See Also: C_ADAYS() C_AYEARS()

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