I have a Dialog based application. I added a CDateTimeCtrl to the Dialog template. I added a member variable to the Dialog class of Type CDateTimeCtrl as m_datetimectrlTest. (Using Class Wizard)
When I try to retrieve the time as(say in OnOk() )
TRACE1("Time is %s\n",time.Format("%Hhr%Mmin%Ssec") );
Time is always showing 23 hr 59 min 13 sec ??!!
Can anyone give some hints what the problem could be?