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

Moon Phase Function
Dates Times Class

Public Function MoonPhase( _
    ByVal vDate As Variant _
    ) As Variant

Returns the phase of the moon as a number between 0 and 7.
Use the MoonPhaseName function to determine the name for the moon phase.

Examples:
    MoonPhase(#11/12/1999#) = 0
    MoonPhaseName(0) = "New Moon"
    MoonPhase(#12/25/1999#) = 4
    MoonPhaseName(4) = "Full Moon"
See also:
    MoonPhaseName Function
vDate: The date whose moon phase is returned. Function returns Null if vDate is Null or cannot be fixed up to a Date.
v2.0 Addition: This function is new to this version of Entisoft Tools.

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