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.