Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_addmonth()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_ADDMONTH()


Syntax:        L_ADDMONTH(<expD>,<expN>)


Purpose:       To add a number of months to the given date.


Arguments:     <expD> is the date to be altered.

               <expN> is the number of months to add to the given
               date. This must be positive.


Returns:       A Clipper date.


Usage:         To add whole months to a date.


Examples:      date_var = CTOD("01/01/89")
               ? L_ADDMONTH(date_var,3)            && Result: 01/04/89
               ? L_ADDMONTH(date_var,6)            && Result: 01/07/89



Notes:         If the input date is the last day of the month e.g.
               30th April, then adding one month will generate 31st May.


Language:      Clipper

See Also: L_SUBMONTH() L_ADDDAY() L_ADDYEAR()

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