convert CString to CTime

前端 未结 2 1226
我寻月下人不归
我寻月下人不归 2021-01-20 19:14

In smart device MFC application:

I have successfully converted CTime to CString. Now I want to convert it back, CStr

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-20 20:00

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

提交回复
热议问题