Condividi tramite


COleDateTime::GetMonth

Gets the month represented by this date/time value.

int GetMonth( ) const throw( );

Return Value

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

Remarks

Valid return values range between 1 and 12.

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

Example

See the example for GetDay.

Requirements

Header: atlcomtime.h

See Also

Concepts

COleDateTime Class

COleDateTime Members

Hierarchy Chart

COleDateTime::COleDateTime

COleDateTime::SetDateTime

COleDateTime::operator =

COleDateTime::GetStatus