COleDateTime::GetDay

COleDateTime::GetDay

 

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


int GetDay( ) const throw( );

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

Valid return values range between 1 and 31.

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.GetDay() == 19);
ASSERT(t.GetMonth() == 3);
ASSERT(t.GetYear() == 1999);   

Requirements

Header: atlcomtime.h

Show:
© 2016 Microsoft