Help Center

CPowerTime.WeekNumbermethod

Returns the week number for a given date.

DateTimemethoddocumented

Syntax

FUNCTION WeekNumber (BYVAL nYear AS LONG = 0, BYVAL nMonth AS LONG = 0, BYVAL nDay AS LONG = 0) AS LONG

Parameters

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

Description

Returns the week number for a given date. The year must be a 4 digit year. If a parameter is omitted, the value stored in this CPowerTime object is assumed.

Reference

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