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
165
Can I use date format such as '18 Aug 2010' in xamDateTimeEditor?
posted

We conventionally display and enter dates as e.g. '18 Aug 2010' (to avoid any confusion between mm/dd/yy and dd/mm/yy forms).  I can display dates happily in this format using the ValueToDisplayTextConverter property. How can I allow input in this format as well? I can create a ValueToTextConverter, but if I define a mask just to accept any characters, the control won't display the calendar drop down.

Also, is it possible to customise the format of today's date in the calendar drop down?

Parents
No Data
Reply
  • 27093
    posted

    Hello Peter,

     

    I have been researching this issue for some time and though it is easy enough to display the format you desire a mask equivalent doesn’t exist. Your best option would be to use the xamDateTimeEditor with these settings Format="dd/MMM/yyyy"  Mask="{}{LOC}dd/mm/yyyy".

     

    In order to change the Today button’s format you can retemplate the control using the original templates (default path: C:\Program Files (x86)\Infragistics\NetAdvantage 2010.2\WPF\DefaultStyles ) where there is a style TodayButtonStyleKey.

     

    Please let me know if you require any further clarification on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

Children