show / hide menu

GetMonth

This function can be used to get the month part in a date. For example, if you the month part of the date in any given format you can use this function.

Syntax :

GetMonth(Date value)

Where
Date Value is the given date

Examples :

textbox1.Value = GetMonth( dtFromDate.Value )

This example shows how we can use a date from two datetimepicker controls and find the month part.