vc 字符串转时间,并取时间差
时间:2011-03-04 来源:阿彬
CString stime = "2011-01-18 14:42:08";
COleDateTime CurrTime = COleDateTime::GetCurrentTime();
COleDateTime tempTime;
tempTime.ParseDateTime(stime);
COleDateTimeSpan result = CurrTime - tempTime;
相关阅读 更多 +