CTime::GetMonth

int GetMonth( ) const;

Remarks

Returns the month, based on local time, in the range 1 through 12 (1 = January). 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

See the example for GetDay.

CTime OverviewClass MembersHierarchy Chart