NAnt SDK Documentation - v0.85-nightly-2005-11-09

DateTimeFunctions.GetYear Method 

[This is preliminary documentation and subject to change.]

Gets the year component of the specified date.

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

Parameters

date
The date of which to get the year component.

Return Value

The year, between 1 and 9999.

Remarks

Missing <remarks> documentation for M:NAnt.Core.Functions.DateTimeFunctions.GetYear(System.DateTime)

See Also

DateTimeFunctions Class | NAnt.Core.Functions Namespace