adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / DateTimeHandling Class / DayOfWeek Method


In This Topic
    DayOfWeek Method
    In This Topic
    Returns an integer corresponding to the day of the week for the specified date, with Sunday=1, Monday=2, ..., Saturday=7
    Syntax
    'Declaration
     
    
    Public Shared Function DayOfWeek( _
       ByVal value As Date _
    ) As Weekday
    public static Weekday DayOfWeek( 
       DateTime value
    )
    public:
    static Weekday DayOfWeek( 
       DateTime value
    ) 

    Parameters

    value
    Remarks
    This method converts from the DayOfWeek value returned by DateTime.DayOfWeek, which uses Sunday=0. adTempus uses Sunday=1.
    See Also