|
|
The VBA DAY Function
DescriptionThe VBA Day Function returns the day number (from 1 to 31) of a supplied date. The syntax of the function is:
Day( date )
VBA Day Function ExampleA simple example of the VBA Day function is shown below:
After running the above snippet of VBA code, the variable 'DayNum' holds the value 29, which is the day number of the date "29/11/2009" (where the date "29/11/2009" is in the format dd/mm/yyyy). |
|||
|
|
Copyright © 2008-2011 ExcelFunctions.net |