Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,

                                    I have a number of Date/Time editors that default the time component to 23:59. A user has just reported that he can change the date within the 'current month' and the 23:59 remains however, if he changes to a date in another month, the time component is set to 00:00.

                                    I have confirmed this is the case in our development system also. Is there a work around for this issue.

                                    Our environment is:
                                    VB.Net
                                    Location: Australia
                                    Display Format: DateTime "G"
                                    Edit Format: DateTime "G"
                                    Edit Mask: G
                                    Null Date: 01/01/1800 12:00:00 AM
                                    Null Text: / /

                                    This initial value for the control is set using:
                                            Me.ToDate.DateTime = Date.Today.Add(TimeSpan.FromMinutes(1439))

                                    TIA - Peter

                                    Steps to Reproduce:

                                    Run the attached project (Q243059c.zip).

                                    Open the DateEdit popup.

                                    Move to another month, and click some date.

                                    Actual Results:

                                    The Time part of the date is set to 00:00

                                    Expected Results:

                                    Don't change the Time part, as in other date selecting scenarios.

                                0

                                Hi Peter,

                                I'm afraid I can't reproduce this issue on my side. I have prepared a sample project, which works fine for me. It is attached. Please modify it to reproduce the issue, and attach it to your next post.

                                Thanks,
                                Michael.

                                0

                                Hi Michael,

                                Your sample exhibits the same problem I reported.

                                Did you change your regional settings to Australia? That being said I changed mine to US and it didn't make any difference.

                                My development system is Vista and our production system in Server 2008 (Std Ed) - both with latest service packs.

                                Cheers, Peter

                                0

                                Hi Peter,

                                I've set the current culture to Australia ("en-AU"), but still can't reproduce this issue. As far as I see, you are using a rather old version of our components. We recommend that you upgrade to version 9.2.10. If this doesn't help, please provide detailed steps on how to reproduce this issue, or record a video demonstrating it.

                                Thanks,
                                Michael.

                                0

                                Hi Michael,

                                I've just updated to the latest version and, using the sample you sent, the problem remains.

                                Can you just confirm that you are changing the date into another month because it works ok when changing dates in the current month.

                                Cheers, Peter

                                0

                                Hi Peter,

                                I've attached a modified project (where the current culture is set to "en-AU"), and a video capture that shows that the DateEdit is working fine.

                                If there is any other specific condition required to reproduce this issue, please explain it in detail.

                                Thanks,
                                Michael.

                                0

                                Hi Michael,

                                Thanks for the avi - yes, I can see the sample works fine at your end. However the solution you sent for me to have a look at doesn't contain any code for the SimpleButton1 click event.

                                Also I note:

                                1) This version had Dx 9.2 references while the previous version you sent had 9.3 references. I changed the reference in this sample to 9.3 because you advised me to move to 9.3.

                                2) Both this solution and the previous had to be 'converted' by Visual Studion because it advised they had been created in previous version of VS and a conversion was needed. Could this be an issue?

                                Previously my only testing had been with changing the date via the calendar drop down (normal usage for us) and never via just using the keyboard.

                                a) When using the keyboard it works fine.

                                b) When using the calendar drop down and selecting a day in another month that is visible, e.g. selecting 30 Dec in the January 2010 calender it works fine.

                                c) When using the left / right arrow in the calender control to move to another month and selecting another date then the time is set to 00:00.

                                If you can please send me the exact solution used in the avi I will try to find the difference in our environments that cause the problem.

                                Cheers, Peter

                                0

                                Hi Peter,

                                The project I attached to my previous message is the one I used to create a video. I've also tested this scenario with both DXperience versions 9.2.10 and 9.3.2 (I converted the project using the ProjectConverter tool), and in both VS2005 and VS2008 IDEs. The result is the same. Possibly, there are some other customized culture settings on your machine, which cause this issue.

                                Thanks,
                                Michael.

                                0

                                Hi Michael,

                                I have attached the zip file you sent me. Perhaps I'm being a bit thick but as best as I can tell it is using 9.2 DX, not 9.3 and I can't see any code for the button's click event.

                                Cheers, Peter

                                0

                                Hi Peter,

                                Yes, I attached a project that uses version 9.2.10. You should use the ProjectConverter tool to convert it to another version. I already did this and tested version 9.3.2 as well (attached is a converted project for your reference). Yes, the button's Click event isn't handled. I use this button only to move focus from the DateEdit.

                                I'm looking forward to hearing from you.

                                Thanks,
                                Michael.

                                0

                                Hi Michael,

                                Does this help at all. The format of the DateEdit in Vista (developement system) and Server 2008 Std Ed (production system) is different to that shown in your avi.

                                Cheers, Peter

                                0

                                Hi Michael,

                                Well, a partial answer. If I set the property: VistaDisplayMode to False then I get a calendar dropdown in the same format as your avi and the time is not set to 00:00.

                                Changing this property in all out forms and distributing the update is a bit cumbersome plus we prefer the format and features of the existing calender dropdown down. Any suggestions for a work around?

                                Cheers, Peter

                                0

                                Hi Peter,

                                Thank you very much for the additional information. It seems the this issue doesn't depend on the current culture. I've reproduced it by setting the DateEdit.Properties.VistaDisplayMode property to True. It appears to be a bug in our control. We'll research this problem further and try to resolve it as soon as possible.

                                Thanks,
                                Michael.

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners