This is a discussion on DateTimePicker in Form - Programmer ; Hi, How do you get the date picked when the Date Time Picker is on a form view? In a dialog I just get the value when the user clicks the OK button. I assume you have to respond to ...
Hi,
How do you get the date picked when the Date Time Picker is on a form
view? In a dialog I just get the value when the user clicks the OK
button.
I assume you have to respond to a DTN_CLOSEUP but my member variable
m_time (CTime) attached to the control never updates.
CTime dteStart;
// Get the starting date
this->m_time.GetTime(dteStart);
I get an error that GetTime doesn't take one parameter
dteStart = this->m_time.GetTime();
Still zero. I just need to get the date picked.
Any help appreciated, thanks.
Paul