AfxDaysBetweenfunction
Returns the number of days between two given dates.
Syntax
FUNCTION AfxDaysBetween (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 number of days.
Description
Returns the number of days between two given dates.
Reference
- Include file
AfxTime.inc - Defined in AfxNova/AfxTime.inc:656
- Documented in DateTime/DateTime Procedures.md
- Topic: Date and Time Procedures