1     CTime oCurTime;
2     oCurTime=CTime::GetCurrentTime();
3     CString strDateTime=oCurTime.Format(TEXT("%Y%m%d %H:%M:%S"));