get system date in (mm/dd/yy) format
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
See
GetSystemTime
. -
what about
TCHAR szSysTime[] = {_T("mm/dd/yy")};
SYSTEMTIME st;
GetSystemTime(&st);
_stprintf(szSysTime, _T("%02d/%02d/%02d"), st.wMonth, st.wDay, st.wYear % 100);? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]