The GetMonth function is used to extract the month part from a given date value. It helps retrieve the month from a date provided in any supported date format.

Syntax: GetMonth(Date value)
Argument: Date value
Argument Description: Specifies the date from which the month needs to be extracted.
Example
TextBox1.Value=GetMonth(DateTimePicker1.Value)
In this example, the GetMonth function extracts the month from the date selected in DateTimePicker1 and assigns the resulting month value to TextBox1.
