I have just updated to v9.3.2 and have found all my dateedit controls are now showing the time as well despite all having the DisplayFormat, EditFormat & EditMask all being set to DateTime "d". Even setting them to use a custom format "dd/MM/yyyy" does not cahnge anything. Regardless of what is set, it is showing the date and time in General format.
It would appear a defect has been introduced as this was fine in the previous version.
Steps to Reproduce:
Add a dataedit control, set the editvalue
shows date/time ie "29/11/2009 12:00AM"
to show the date only ie "29/11/2009"
Unfortunately, I can't replicate the problem. I have attached a sample project which works fine for me. Please change it to replicate the problem and send it to me.
I'm awaiting your response.
I have been able to reproduce it using your sample project and have re-attached the code and a screenshot.
It only shows the date when the control is selected, but when selecting a different control, the time is also shown in the previous control
Thank you for the attached project.
As I see from your sample, you set the DateEdit.EditValue property to a string. The DateEdit.EditValue property presumes getting/setting of the DateTime values.
Please change your code in a similar manner:
dateEdit1.EditValue = DateTime.Parse("2009-12-31 00:00:00.000"); dateEdit2.EditValue = DateTime.Parse("2009-12-25 00:00:00.000"); dateEdit3.EditValue = DateTime.Parse("2010-01-02 00:00:00.000");
I've modified your sample accordingly, and now it works as expected here. Please refer to the attached project.
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.