The Day function returns a number between 1 and 31 that represents the day of the specified date.
Syntax
Day(date)
Example
Add a button and add the following function.
Private Sub Constant_demo_Click() msgbox(Day("2013-06-30")) End Sub
When you execute the above function, it produces the following output.
30
Previous Page:-Click Here