Help Center

AfxDaysInMonthfunction

Returns the number of days in the specified month/year.

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxDaysInMonth (BYVAL nMonth AS LONG, BYVAL nYear AS LONG) AS LONG

Parameters

NameDescription
nMonthA month ordinal number (1-12).
nYearA four digit year.

Return value

The number of days in the specified month/year.

Description

Returns the number of days in the specified month/year.

Reference

  • Include file AfxTime.inc
  • Defined in AfxNova/AfxTime.inc:546
  • Documented in DateTime/DateTime Procedures.md
  • Topic: Date and Time Procedures