NAnt SDK Documentation - v0.92

DateTimeFunctions.GetDayOfWeek Method 

Gets the day of the week represented by the specified date.

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

Parameters

date
The date of which to get the day of the week.

Return Value

The day of the week, ranging from zero, indicating Sunday, to six, indicating Saturday.

See Also

DateTimeFunctions Class | NAnt.Core.Functions Namespace