Name

Month Function — Microsoft.VisualBasic.DateAndTime

Synopsis

Month(datevalue)
datevalue required; Date

Date variable or literal date whose month component is to be extracted.

Return Value

An Integer between 1 and 12

Description

Returns an integer representing the month of the year of a given date expression. If datevalue contains Nothing, Month returns Nothing.

Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.