COleDateTime m_dateConstruct;// 施工日期
COleDateTime m_time = COleDateTime::GetCurrentTime();
CString strVer = m_time.Format(_T("%Y-%m-%d %H:%M:%S"));
time_t w_Testtime; //测试日期
CString expDate = COleDateTime(w_Testtime).Format(CString("%Y-%m-%d"));
cstring 转 ColeDateTime:
CString aString;
m_dateDetect.ParseDateTime(aString);// 检测日期