MFC 如何显示时间星期月份

来源:互联网 发布:淘宝差评处理技巧 编辑:程序博客网 时间:2024/04/27 22:31

CString strTime;

CTime currentTime  = CTime::GetCurrentTime();

strTime = currentTime.Format("%Z-%Y-%m-%d %H:%M:%S");

AfxMessageBox(strTime);

原创粉丝点击