CTime currTime; currTime = CTime::GetCurrentTime(); CString strTime; strTime.Format(_T("%.4d%.2d%.2d_%.2d"), currTime.GetYear(), currTime.GetMonth(), currTime.GetDay(), currTime.GetHour());