Help Center

CPowerTime.WeeksInYearmethod

Returns the number of weeks in the specefied month and year.

DateTimemethoddocumented

Syntax

FUNCTION WeeksInYear (BYVAL nYear AS LONG = 0) 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. The year must be a four digit year. If the year is omitted, the year of this CPowertime object is assumed.

Reference

  • Defined in AfxNova/CPowerTime.inc:854
  • Documented in DateTime/CPowerTime Class.md
  • Topic: CPowerTime Class