<-- Previous || Up || Next -->

Day Number Function
Dates Times Class

Public Function DayNumber( _
      ByVal vYear As Variant _
    , ByVal vMonth As Variant _
    , ByVal vDay As Variant _
    ) As Variant

Return the number of days since 1/1/1 plus one.

Examples:
    DayNumber(1999, 11, 12) = 730072
    DayNumber(1903, 12, 17) = 695043
    DayNumber(1776, 7, 4) = 648493
    DayNumber(1, 1, 1) = 1
See also:
    DaysSinceZero Function
    JulianDate Function
    JulianDay Function
vYear: Must use the full four-digit year; cannot use 96, for example, to mean 1996. Function returns Null if vYear is Null or cannot be interpreted as an integer number.
vMonth: Month in the year vYear. Function returns Null if vMonth is Null or cannot be interpreted as an integer number.
vDay: Day in the month vMonth. Function returns Null if vDayis Null or cannot be interpreted as an integer number.
v2.0 Addition: This function is new to this version of Entisoft Tools.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.