int y, m, d;
CString strTime;
CTime t;
strTime = (LPCTSTR)(_bstr_t)m_pRecordset->GetCollect(“rdate”);
sscanf_s(strTime.GetBuffer(strTime.GetLength()), “%d-%d-%d”, &y, &m, &d);
t = CTime(y, m, d, 0, 0, 0);
((CDateTimeCtrl*)GetDlgItem(IDC_DP_ORD))->SetTime(&t);
ACCESS数据库中取出的时间如何显示在VS的日期时间控件中
最新推荐文章于 2020-11-24 19:13:19 发布