Help Center

AfxAstroDayOfWeekfunction

Calculates the day of the week, Sunday through Monday, of a given date.

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxAstroDayOfWeek (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

A number between 0-6, where 0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday.

Description

Calculates the day of the week, Sunday through Monday, of a given date.

Reference

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