Microsoft® Visual Basic® Scripting Edition
Day Function
 Language Reference 
Version 1 

See Also


Description
Returns a whole number between 1 and 31, inclusive, representing the day of the month.
Syntax
Day(date)

The date argument is any expression that can represent a date. If date contains Null, Null is returned.

The following example uses the Day function to obtain the day of the month from a specified date:

Dim MyDay
MyDay = Day("October 19, 1962")  ' MyDay contains 19.