Convert CString to CTime

In the MFC application for smart devices :

I successfully converted CTimeto CString. Now I want to convert it CStringto CTime. How can i do this?

+3
source share
2 answers

Use COleDateTime::ParseDateTime(CString)and then convert it to CTime.

+5
source

See the example mentioned on this page of the MSDN document: COleDateTime :: ParseDateTime

+1
source

Source: https://habr.com/ru/post/1758143/


All Articles