Function Dates Times Class

SeasonName

Returns the name of the season corresponding to the given date. Season differs depending upon whether location is Northern Hemisphere or Southern Hemisphere.

Signature (Visual Basic / VBA)

Public Function SeasonName( _
      Optional ByVal vDate As Variant _
    , Optional ByVal vNorthHemi As Variant _
    ) As Variant

Code Example

    SeasonName(#3/1/96#) = "Winter"
    SeasonName(#6/1/96#) = "Spring"
    SeasonName(#3/1/96#, False) = "Summer"
    SeasonName(#6/1/96#, False) = "Fall"

Parameters

Parameter Description
vDate The date whose corresponding season name is returned. vDate defaults to the current date (today) if it is missing or Null or cannot be fixed up to a Date.
vNorthHemi True if the function should return the season in the Northern Hemisphere of the world, or False if it should return the season in the Southern Hemisphere. vNorthHemi defaults to True if is it missing or Null or cannot be fixed up to a number.