{
Cstrings szBegin=_T (" ");
CTime time_begin=NULL;
M_dateBegin. GetTime (time_begin);
Int n_year=time_begin. GetYear ();
SzBegin. The Format (_T (" % d % % 4 d - 02-02 d 00:00:00 "), time_begin. GetYear (), time_begin, GetMonth (), time_begin. GetDay ());
CDialog: : OnOK ();
}
Choice of date is 2020/7/24 after operation, but after determine the buttons in the int n_year has got 1970, GetTime access number has a problem, what is this
CodePudding user response:
Have linked to control DDX_Control m_dateBegin?CodePudding user response: