DateAndTime.Month Method (DateTime)
Returns an Integer value from 1 through 12 representing the month of the year.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
You can also obtain the month of the year by calling DatePart and specifying DateInterval.Month for the Interval argument.
This example uses the Month function to obtain the month from a specified date. In the development environment, the date literal is displayed in short date format using the locale settings of your code.
Available since 1.1
Available since 2.0