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


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


Purpose:       To subtract one or more months from the given date.


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

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


Returns:       A Clipper date.


Usage:         To subtract whole months from a date.


Examples:      date_var = CTOD("01/01/89")
               ? L_SUBMONTH(date_var,3)         && Result: 01/10/88
               ? L_SUBMONTH(date_var,6)         && Result: 01/07/88


Notes:         If the input date is the last day of the month e.g.
               30th September, then subtracting one month will
               generate 31st August.


Language:      Clipper

See Also: L_ADDMONTH() L_ADDDAY() L_ADDYEAR()

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