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

                                    I've a DateEdit field (dtDataOraRicezione) with "f" Mask to show current date and short time.

                                    In properties: dtDataOraRicezione.Properties.Mask.UseMaskAsDisplayFormat = true

                                    I've used too: dtDataOraRicezione.Properties.Mask.Culture = new CultureInfo("it-IT");

                                    At design time display field is "mercoledì 18 luglio 2012 9:24" but at run time it shows "mercoledì 18 luglio 2012 9.24".

                                    I'd like my DateEdit show correct time format with ":" not ".".

                                    If DateEdit mask id "F" it work well: "mercoledì 18 luglio 2012 9:24:16

                                    What I wrong?

                                    Gaetano

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                Thank you for contacting us.

                                According to Italian time format specifications (described in Italian (Italy) (it-IT), for example), a proper time delimeter is a dot (".") rather than a colon (":"). I have tested both short and long time masks and made sure that they both use a dot as a delimeter. However, if you wish to use the colon, use the DateTimeFormatInfo.ShortTimePattern and DateTimeFormatInfo.TimeSeparator properties to specify a string that separates the components of time.

                                I have created a sample project to demonstrate this approach in action. Please let us know whether or nor this solution meets your requirements. If it does not, feel free to reactivate this ticket.

                                • ABRAMO ABRAMO 07.18.2012

                                  Hi Pavel,
                                  thank you for your solution, it works for me.

                                  Gaetano.

                                You must  log in  or  register  to leave comments

                                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