#include "atltime.h"

 CTime t = CTime::GetCurrentTime();
 CString time;
 time.Format(_T("%04d-%02d-%02d %02d:%02d:%02d"), t.GetYear(), t.GetMonth(), t.GetDay(), t.GetHour(), t.GetMinute(), t.GetSecond());

'Programming > MFC' 카테고리의 다른 글

CString 숫자인지 체크  (0) 2012.05.08
CString 클래스  (0) 2012.05.04
MFC 자주쓰는 함수  (0) 2012.04.20

+ Recent posts