Posted on 2013-03-30 12:10
盛胜 阅读(185)
评论(0) 编辑 收藏 引用
//m_pdbado->GetFieldValue(_T("AccountCreateDate"),str);
m_pdbado->GetFieldValue(_T("AccountCreateDate"),coledatetime);
str = coledatetime.Format("%Y-%m-%d %H:%M:%S");
if (str.size()>64)
{
m_strError = "超过长度";
//m_pdbado->CloseRecordset();
return false;
}
strcpy_s(user_info.AccountCreateDate,64,str.c_str());
要用COleDateTime coledatetime; 读取,再格式化