Help Center

AfxWeeksInMonthfunction

Returns the number of weeks in the specified month. Will be 4 or 5.

DateTimefunctionAfxTime.incdocumented

Syntax

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

Parameters

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

Description

Returns the number of weeks in the specified month. Will be 4 or 5.

Reference

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