格式如:04-01-2014, 18:01:44
// 构造当前时间对象
CTime CurTime = CTime::GetCurrentTime();
// 格式化成字符串
CString strCurTime = CurTime.Format("%m-%d-%Y, %H:%M:%S");