Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
975
XamDateTimeEditor edit format
posted

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

Parents
No Data
Reply
  • 54937
    Offline posted

    The masked editor (xamDateTimeEditor is a derived xamMaskedEditor) does not currently support Month/Day name sections - only the numeric value - so that is why the mask is using "MM" when you go into edit mode.

Children