CTime::GetDay

int GetDay( ) const;

Remarks

Returns the day of the month, based on local time, in the range 1 through 31. This function calls GetLocalTm, which uses an internal, statically allocated buffer. The data in this buffer is overwritten as a result of calls to other CTime member functions.

Example

// example for CTime::GetDay, CTime::GetMonth, and CTime::GetYear
CTime t( 1999, 3, 19, 22, 15, 0 ); // 10:15PM March 19, 1999
ASSERT( t.GetDay() == 19 );
ASSERT( t.GetMonth() == 3 );
ASSERT( t.GetYear() == 1999 );

CTime OverviewClass MembersHierarchy Chart

See Also   CTime::GetDayOfWeek