Help Center

AfxDayOfYearfunction

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

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxDayOfYear (BYVAL nDay AS LONG, BYVAL nMonth AS LONG, BYVAL nYear AS LONG) AS LONG

Parameters

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

Return value

The day of the year.

Description

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

Reference

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