Function Dates Times Class

MoonPhaseName

Returns the name of the moon phase given its number between 0 and 7. Use the MoonPhase function to determine the phase of the moon for a given date.

Signature (Visual Basic / VBA)

Public Function MoonPhaseName( _
    ByVal vPhase As Variant _
    ) As Variant

Code Example

    MoonPhase(#11/12/1999#) = 0
    MoonPhaseName(0) = "New Moon"
    MoonPhase(#12/25/1999#) = 4
    MoonPhaseName(4) = "Full Moon"

Parameters

Parameter Description
vPhase The phase of the moon (between 0 and 7) whose name is returned. Function returns Null if vPhase is Null or cannot be fixed up to an integer number.

Notes & Version History

v2.0 Addition This function is new to this version of Entisoft Tools.