1 获取时间格式 2013-03-04 07:08
CString strDate,strTime;
CTime tm = CTime::GetCurrentTime();
strDate = tm.Format(L"%Y-%m-%d");
strTime = tm.Format(L"%H:%m");
2 获取时间格式 2013-3-4 7:8
SYSTEMTIME st;
GetLocalTime(&st); //GetlocalTime 获取的是北京时间 GetSystemTime 是UTC时间
strDate.Format(L"%4-%2-%2d",st.wYear,st.wMonth,st.wDay);
strTime.Format(L"%