Day

<< Click to Display Table of Contents >>

Navigation:  Date / Time functions >

Day

Description

Returns an Integer specifying a whole number between 1 and 31, inclusive, representing the day of the month.

Syntax

MyDay = Day(date)

Example

Dim MyDate As Date
Dim MyDay As Integer
MyDate = #May 20, 1963#   ' Assign a date.
MyDay = Day(MyDate)       ' MyDay contains 20