NAnt SDK Documentation - v0.92 |

# DateTimeFunctions.GetMonth Method

Gets the month component of the specified date.

[Visual Basic]
<Function(Name:="get-month")>
Public Shared Function GetMonth( _
ByVal date As Date _
) As Integer
[C#]
[Function(Name="get-month")]
public static int GetMonth(
DateTime date
);

#### Parameters

date
  The date of which to get the month component.

#### Return Value

The month, between 1 and 12.

#### See Also

DateTimeFunctions Class | NAnt.Core.Functions Namespace