If you don't wanna use MFC, there is always this option...
Code:struct tm * tmTime = NULL; time_t tTimeInt = 0; time( &tTimeInt ); tmTime = localtime( &tTimeInt ); tmTime->tm_year; // This is the current year // minus 1900.
|
Results 1 to 3 of 3
Thread: getting current yearThreaded View
|
Click Here to Expand Forum to Full Width |