Day Function

Syntax

Day(dateexpr)

Group

Time/Date

Description

Returns the day of the month (1 to 31).

Parameters

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

See also

Date( ), Month( ), Weekday( ), Year( )


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