CString str;
LPSYSTEMTIME lpSystemTime;
GetSystemTime(lpSystemTime);
str.Format("%d,%d,%d",lpSystemTime->wHour,....);
pDc->TextOut(str);
LPSYSTEMTIME lpSystemTime;
GetSystemTime(lpSystemTime);
str.Format("%d,%d,%d",lpSystemTime->wHour,....);
pDc->TextOut(str);
GetSystemTime( &ST );
CTime tm( ST );
CString sTm = tm.Format( "%A, %B %d, %Y" );
MessageBox( sTm );
CTime tm=CTime::GetCurrentTime();
CString ntime=tm.Format("%Y-%m-%d-%H-%M-%S");
MessageBox(ntime);