CTime time;
m_time.GetTime(time); //m_time为控件变量
CString strTime = time.Format("%Y-%m-%d"); //获取到的为日期 如:2010-03-05
MFC获取控件DateTimeCtrl时间
最新推荐文章于 2022-11-11 10:28:51 发布
CTime time;
m_time.GetTime(time); //m_time为控件变量
CString strTime = time.Format("%Y-%m-%d"); //获取到的为日期 如:2010-03-05