获取当前时间并格式化

来源:互联网 发布:阿里流量软件 编辑:程序博客网 时间:2024/05/16 01:18
//获取当前时间并格式化
CString strTime = CTime::GetCurrentTime().Format("%y-%m-%d %H:%M:%S");