AfxDateDifffunction
Calculates the days of difference between two dates.
Syntax
FUNCTION AfxDateDiff (BYVAL nDay1 AS LONG, BYVAL nMonth1 AS LONG, BYVAL nYear1 AS LONG, BYVAL nDay2 AS LONG, BYVAL nMonth2 AS LONG, BYVAL nYear2 AS LONG) AS LONG
Parameters
| Name | Description | |
|---|---|---|
nDay1 | A day number (1-31). | |
nMonth1 | A month number (1-12). | |
nYear1 | A four digit year. | |
nDay2 | A day number (1-31). | |
nMonth2 | A month number (1-12). | |
nYear2 | A four digit year. |
Return value
The days of difference between the two dates.
Description
Calculates the days of difference between two dates.
Reference
- Include file
AfxTime.inc - Defined in AfxNova/AfxTime.inc:441
- Documented in DateTime/DateTime Procedures.md
- Topic: Date and Time Procedures