Day Function

Syntax:

Day(dateexpr)

Group:

Time/Date

Description: Return the day of the month (1 to 31).

Parameters:

Parameter

Description

dateexpr

Return the day of the month for this date value. If this value is Null then Null is returned.

Example:

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

See Also:

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