Help Center

AfxWeeksInYearfunction

Returns the number of weeks in the year, where weeks are taken to start on Monday. Will be 52 or 53.

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxWeeksInYear (BYVAL nYear AS LONG) AS LONG

Parameters

NameDescription
nYearA four digit year.

Description

Returns the number of weeks in the year, where weeks are taken to start on Monday. Will be 52 or 53.

Reference

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