xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

AddMonth()

Adds or subtracts a number of months to/from a Date value.

Syntax

AddMonth( <dDate>, <nMonths> ) --> dNewDate

Arguments

<dDate>
A Date value, except for an empty date, can be passed.
<nMonths>
An integer numeric value specifying the number of months to add to <dDate>. If <nMonths> is a negative value, it is subtracted from <dDate>.

Return

The function returns the modified date, or an empty date on error.

Info

See also:Date(), Month()
Category: CT:DateTime , Date and time
Source:ct\dattime2.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe