I used a Date Time Picker control & mapped value to CTime. The default value in the control when I run the app is 12/31/69. Works fine until I change the date in the control. Then get ASSERT failure. I traced the code after returning from DoModal(). MFC calls DoDataExchange() which calls DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKER, m_tDate); (m_tDate is dialog variable of type CTime. Assert fails when CTime constructor in MFC's file TimeCore.cpp is called at Line 40 . . . ASSERT(m_time != -1);. Any ideas. Thanks very much for anyone's input.
PS. I just learned that it fails only when I change the month or day. I can change the year without the assert failure. (?)