how to convert from CTime to CString HELP
-
Hi again, I am trying to get data from a datepicker and it gives me a CDateTimeCtrl.I think I have converted to a CTime but How do I convert that to a cString to write it to a file. Here is what I have for code.
CString szChoice; CTime date; m_date.GetTime(date); szChoice = date.Format(L"%x"); fileRead(L"Date: " + szChoice+ " \r" )
Thanks guys, Rod -
Hi again, I am trying to get data from a datepicker and it gives me a CDateTimeCtrl.I think I have converted to a CTime but How do I convert that to a cString to write it to a file. Here is what I have for code.
CString szChoice; CTime date; m_date.GetTime(date); szChoice = date.Format(L"%x"); fileRead(L"Date: " + szChoice+ " \r" )
Thanks guys, RodThis can help: A Date and Time formatter[^] Regards, João Paulo Figueira Embedded MVP