CString strTime;
CTime currentTime = CTime::GetCurrentTime();
strTime = currentTime.Format("%Z-%Y-%m-%d %H:%M:%S");
AfxMessageBox(strTime);
CString strTime;
CTime currentTime = CTime::GetCurrentTime();
strTime = currentTime.Format("%Z-%Y-%m-%d %H:%M:%S");
AfxMessageBox(strTime);