Help Center

CPowerTime.DayOfYearmethod

Returns the day of the year, where Jan 1 is the first day of the year.

DateTimemethoddocumented

Syntax

FUNCTION DayOfYear (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 day of the year, where Jan 1 is the first day of the year. If a parameter is omitted, the value stored in this CPowerTime object is assumed.

Reference

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