다음을 통해 공유


COleDateTime::GetDayOfWeek

Gets the day of the month represented by this date/time value.

int GetDayOfWeek( ) const throw( );

Return Value

The day of the week represented by the value of this COleDateTime object or COleDateTime::error if the day of the week could not be obtained.

Remarks

Valid return values range between 1 and 7, where 1=Sunday, 2=Monday, and so on.

For information on other member functions that query the value of this COleDateTime object, see the following member functions:

Example

COleDateTime t(1999, 3, 19, 22, 15, 0); // 10:15PM March 19, 1999
ASSERT(t.GetDayOfWeek() == 6);          // it's a Friday   

Requirements

Header: atlcommem.h

See Also

Reference

COleDateTime Class

Hierarchy Chart

COleDateTime::COleDateTime

COleDateTime::SetDateTime

COleDateTime::operator =

COleDateTime::GetStatus

Other Resources

COleDateTime Members