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

 DESCRIPTION

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

 SYNTAX

 C_ADAYS(date, (+/-)days)

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

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

 RETURNS

 C_ADAYS() returns a date variable.

 EXAMPLES

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

 ? c_adays(date1,1)    --> 01/02/90    && Add 1 day
 ? c_adays(date1,-1)   --> 12/31/89    && Subtract 1 day
 ? c_adays(date1,31)   --> 02/01/90    && Add 31 days
 ? c_adays(date1,-31)  --> 12/01/89    && Subtract 31 days
 ? c_adays(date1,365)  --> 01/01/91    && Add 365 days
 ? c_adays(date1,-365) --> 01/01/89    && Subtract 365 days


See Also: C_AMONTHS() C_AYEARS()

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