TCHAR buff[256] = {0}; SYSTEMTIME sysTime; GetSystemTime(&sysTime); GetDateFormat(LOCALE_USER_DEFAULT, LOCALE_NOUSEROVERRIDE, &sysTime, NULL, buff, 256);
TCHAR buff[256] = {0}; time_t curTime; time(&curTime); _tcsftime(buff, 255, _T("%#c"), localtime(&curTime));