AfxDateAddDaysfunction
Adds the specified number of days to a given date.
Syntax
FUNCTION AfxDateAddDays (BYVAL nDay AS LONG, BYVAL nMonth AS LONG, BYVAL nYear AS LONG, BYVAL nDays AS LONG) AS LONG
Parameters
| Name | Description | |
|---|---|---|
nDay | A day number (1-31). | |
nMonth | A month number (1-12). | |
nYear | A four digit year. | |
nDays | The number of days to add (or subtract, if it is negative). |
Return value
The new date in Julian format. To convert it to Gregorian, call functions such AfxJulianToGregorian or AfxJulianToGregorianStr.
Description
Adds the specified number of days to a given date.
Reference
- Include file
AfxTime.inc - Defined in AfxNova/AfxTime.inc:460
- Documented in DateTime/DateTime Procedures.md
- Topic: Date and Time Procedures