Help Center

AfxDateDifffunction

Calculates the days of difference between two dates.

DateTimefunctionAfxTime.incdocumented

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

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 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