|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Month Function (Visual Basic)
Returns an Integer value from 1 through 12 representing the month of the year.
Required. Date value from which you want to extract the month.
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.
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)