Help Center

AfxGregorianToJulianfunction

Converts a Gregorian date to a Julian date. The year must be a 4 digit year.

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxGregorianToJulian (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 converted date.

Description

Converts a Gregorian date to a Julian date. The year must be a 4 digit year.

Reference

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