Month Function

Syntax

Month(dateexpr)

Group

Time/Date

Description

Returns the month of the year (1 to 12).

Parameters

Parameters Description
dateexpr Returns the month of the year for this date value. If this value is Null, Null is returned.

Example


Sub Main
    Debug.Print Month(#1/1/1900#) ' 1
    Debug.Print Month(#2/1/1900#) ' 2
End Sub

See also

Date( ), Day( ), MonthName( ), Weekday( ), Year( )