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

Syntax:     ADDMONTH([<expD>],[<expN>])

Arguments:  <expD> is the date to which <expN> months are added.
            <expN> denotes the number of months to be added.

Returns:    A date value.
            The result is the new date after the addition of <expN>
            months to the <expD> date.

Usage:      This function is useful for calculating payment dates, starting
            from the invoice date, and for similar applications.  It can be
            used add months to a given date.  The months can also
            be subtracted by passing a negative number of months.

Notes:      If no date is specified, the function will default to the system
            date.  A null date will return a null date no matter how many
            months are added.

Library:    CT1.LIB


--------------------------------- Example ------------------------------

Examples:   * Date + 36 months
            ? "The payment term terminates on:" + ADDMONTH(36)



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