# MTCalendarWeekday

The day of the week object created by the MTCalendar object (Includes weekdays as well as weekend objects).

## Program ID

Metratech.MTCalendarWeekday.1

## Methods

GetDayofWeekAsString | Returns this day of the week as a string ("Sunday", "Monday", "Tuesday", etc.) given the Day Index (see DayofWeek below.)

## Properties

DayofWeek | Returns the day index for this day of the week. Day Indexes: 0 - Sunday 1 - Monday 2 - Tuesday 3 - Wednesday 4 - Thursday 5 - Friday 6 - Saturday 7 - Default weekday. 8 - Default weekend.

# Method Detail

## GetDayofWeekAsString

Returns this day of the week as a string ("Sunday", "Monday", "Tuesday", etc.) given the Day Index (see DayofWeek below.)

### Visual Basic Syntax

Property DayofWeek As Long

### C++ Syntax

HRESULT DayofWeek([out, retval] long *pVal);

HRESULT DayofWeek([in] long newVal);

# Property Detail

## DayofWeek

Returns the day index for this day of the week.

Day Indexes:

0 - Sunday

1 - Monday

2 - Tuesday

3 - Wednesday

4 - Thursday

5 - Friday

6 - Saturday

7 - Default weekday.

8 - Default weekend.

### Visual Basic Syntax

GetDayofWeekAsString() As String

### C++ Syntax

HRESULT GetDayofWeekAsString([out, retval] BSTR* pVal);

##