Archive for March, 2010

Getting formatted date and time string in C Programming

wchar_t wszTime[101];
time_t t = time(NULL);
wcsftime(wszTime, sizeof(wszTime), _T(“%Y/%m/%d : %H:%M:%S”), localtime(&t));
wprintf(_T(“%s”), wszTime);

Advertisements

Leave a Comment