Help Center

AfxDaysBetweenfunction

Returns the number of days between two given dates.

DateTimefunctionAfxTime.incdocumented

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

NameDescription
nDay1A day number (1-31).
nMonth1A month number (1-12).
nYear1A four digit year.
nDay2A day number (1-31).
nMonth2A month number (1-12).
nYear2A 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