vtValue = rs->GetCollect(_variant_t("LastDate"));
COleDateTime tLastDate = (VT_NULL == vtValue.vt) ? 0 : vtValue;
//CString sRet = tLastDate.Format(_T("'%Y-%m-%d %H:%M:%S'"));
if ( t > tLastDate )
{
sRet = _T("登陆失败--已过期。");
bRet = FALSE;
}
VC中读数据库时间并判断
最新推荐文章于 2023-11-08 15:14:51 发布