Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Date Time Picker control,Editing, Date and Time

Status
Not open for further replies.

mvanrijn

Programmer
Jun 23, 2002
19
GB
I'm trying to use the Date and Time Picker Conrol in Visual C++.
I am displaying and editing a combination Date Time field. I have set the format using

CString formatStr = _T("dd MM yyyy hh ':' mm");
start_datetime_control.SetFormat(formatStr);

The properties to on the control are Format: Short Date
and Allow Edit.

My Datetime string appears to be displaying correctly on screen.

However when I edit the datetime, on changing fields the
data is re-set to the last datetime picked using the drop down control.

I'm currently teaching myself C++. So this will
probably be a simple problem to resolve.

Thanks
MJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top