Name

MonthName Function — Microsoft.VisualBasic.DateAndTime

Synopsis

MonthName(month [, abbreviate])
month required; Integer

The ordinal number of the month, from 1 to 12

abbreviate optional; Boolean

A flag to indicate if an abbreviated month name should be returned

Return Value

String containing the name of the specified month

Description

Returns the month name of a given month. For example, a month of 1 returns January or (if abbreviate is True) Jan. The default value for abbreviate is False.

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.