In VC++ 6.0 MFC application i am trying to Display date in Shot Format eg;05-10-09 but it will print 05-10-2009
Here is the code i written SYSTEMTIME st; GetSystemTime(&st);
CString str;
str.Format("%02d-%02d-%02d",st.wDay,st.wMonth,st.wYear); m_date=m_date + str;
I will get output say eg: 05-10-2009, but i want in this format 05-10-09
Plz any body help me