Description
Returns a whole number between 1 and 31, inclusive, representing the day of the month.
Syntax
Day(date)
The date named argument is limited to a date or numbers and strings, in any combination, that can represent a date. If date contains no valid data, Null is returned.
See Also
Date Function, Date Statement, Hour Function, Minute Function, Month Function, Now Function, Second Function, Weekday Function, Year Function.
Example
This example uses the Day function to obtain the day of the month from a specified date.
' In the development environment, the date literal will display in short ' format using the locale settings of your code. MyDate = #February 12, 1969# ' Assign a date. MyDay = Day(MyDate) ' MyDay contains 12.