Reputation: 191
I've got a DataTimePicker in mfc. Now, I want to format the value to a String. I format the value with
CTime m_BDate;
m_DataTimePicker.GetTime (m_BDate);
m_Bithdate= m_BDate.Format ("%d-%m-%Y");
But theres a problem. And a pretty strange problem. Whenever the value is < 1970, it doesnt work. So, 01.01.1970 works. 12.31.1969 doesnt. There comes the message "incorrect parameters". I really have no idea why.
Does anyone have any solution?
Upvotes: 0
Views: 392