Hi,
I'm required to show the following format througt the application "yyyy-MMM-dd". I define the thread as follow
var cultureInfo = System.Globalization.CultureInfo.CreateSpecificCulture(""); var dateTimeFormatInfo = new DateTimeFormatInfo(); dateTimeFormatInfo.ShortDatePattern = "yyyy-MMM-dd"; dateTimeFormatInfo.DateSeparator = "-"; cultureInfo.DateTimeFormat = dateTimeFormatInfo; System.Threading.Thread.CurrentThread.CurrentCulture = cultureInfo;
Everything works fine however the when I go to edit mode the format goes to "yyyy-MM-dd" and I have no idea where that come from.
Regards,
Dominik
Hi Dominik,
Thank you for your interest of Infragistics products.
On your behalf I have logged this feature request as Product Idea with number PI13050034 and title ‘XamDateTimeEditor : support for named Day/Month sections’.
I have discussed it with our development team and they share with us that for now we don’t have any specific plans to implement this functionality of our upcoming release.
Please note that we highly value customer feedback and have a proven track record for delivering feature requests with every major release of our NetAdvantage toolset. Any official information on the future of our products will be posted on our website. Below are a couple helpful links to see our current innovations:
http://es.infragistics.com/innovations/roadmap.aspx#Overview
http://es.infragistics.com/innovations/default.aspx#Overview
For information on upcoming product features, we strongly suggest that you watch our website for beta announcements. We also invite you to evaluate our beta products as they are made available.
Thank you for your interest and continued loyalty to Infragistics products.
Hello Dominik,
I have contacted our development team about more information regarding your latest question.
Thank you for the understanding.
Hi Dimi,
Do you know when that feature will be release.
Thanks,
I am just checking the progress of this issue and was wondering if you have any furthered questions.
The control uses the mask that it is provided (or one that is inferred based on the datatype) to determine what characters are accepted and also uses that to parse the characters entered. The full list of supported mask characters is documented in the help here. It does not support everything that a format string could accept and in the case of datetime it does not support named Month or Day sections. It only supports numerical input for the month number and day number for the entry of the value which is why the "MMM" was translated into the mask section "mm". The control will use the Format when the control is not in edit mode to display the value. The ability to support named Day/Month sections will be submitted as a feature request.