
Posted by Caio Proiete on April 03, 203 at 15:09:18:
In Reply to: how can I convert from CTime to COleDateTime posted by Li_Chinese on February 11, 203 at 22:05:06:
Hi Li_Chinese!
It's very simple... COleDateTime class has both constructor and an operator that takes a time_t variable...
The CTime class wraps a time_t value that you can get by the GetTime() function...
Here is a sample:
CTime objMyCTime;
COleDateTime objMyCOleDateTime;
objMyCOleDateTime = objMyCTime.GetTime();
cheers,
Caio Proiete
: : Hello!
: :Please tell me how can I convert from CTime to COleDateTime.
: :Thank you!
: : with regards
: :Li_Chinese
: :2003-2-12