MFC//时间简单比较方法
void CMFCsaveListTofileDlg::OnBnClickedButton6()//时间简单比较方法
{
// TODO: 在此添加控件通知处理程序代码
CTime time = CTime::GetCurrentTime();
CString strRptTime = time.Format("%Y%m%d%H%M%S");
CString currentTime1str = time.Format("%Y%m%d");
MessageBox(currentTime1str); CString dateStr2 = _T("");
if (currentTime1str > dateStr2)
MessageBox(_T("currentTime1str大于dateStr2"));
else
MessageBox(_T("currentTime1str小于dateStr2")); }