Hi,
Is there any plans to support alphanumeric date formats like dd-MMM-yyyy in the editor input box? Thanks.
Fred
Hi Fred,
There is no plans to support edit-mode format other than digits. However, while editor has no focus, you may set Format=Long and specify any kind of long-date pattern. To customize it you should use Culture of CurrentThread or CalendarLayout.Culture property (all settings are possible only in cs/vb codes). As example for DateTimeInfo operations, you may look at samples for WebDataInput controls related to custom culture.
Hi Viktor,
I think this thread would be the right place to post my question.
In our application we do set the culture info of the CalendarLayout and it works well after selecting a date from a dropdown and then moving the focus. The short date format we set is dd-MMM-yyyy to avoid confusion for our international customers. What still confuses our users is that before focus is moved the format appears to be dd/MM/yyyy and they see a date they selected as Jan 12, for example, as 12/01/2008, which they think is ambiguous and misleading.
Is there any workaround you can propose to control this format?
Sincerely,
Svetlana
Hi Svetlana,
I assume that you do not use Format=Long.
I do not see anything wrong with your #1 example. As I already mentioned, control in focus mode uses only MM part from your MMM. Control in not-focus mode can show your MMM pattern and therefore abbreviated month name is displayed. Order of fields is the same in both focus and not-focus states and matches with your pattern: 1:day-of-month, 2:month, 3:year.
So, you are probably talking not about order of fields, but about different date-field separators. In edit mode separators come not from pattern, but from DateSeparator property (because focus-mode can not support something like dd/MM-yyyy, but not-focus-mode can do that). If you want in focus-mode to have "-" instead of culture defined "/", then you should modify corresponding property as well:
If you want same appearance of month field in focus and no-focus states, then you should not use MMM, but use only M or MM.
Thank you Viktor. I now got it. Assuming that in edit mode there is no way to have MMM format and if we want the month appear first in the edit mode then the ShortDatePattern should be set as MMM-dd-yyyy and a separator should be considered.
So the issue remains for us as we need the format to be set as dd-MMM-yyyy.
Do you think there is any way to alter javascript so the month can appear as MMM as a workaround?
Thanks,
Support for MMM format in edit mode means completely different implementation of logic in ig_WebDropDown.js file (which is used by WebDateChooser on client). Of course anybody may alter that javascript and find workaround, but I think that feature might take not less than few months of work without any guarantee on success.
Are there still no plans for supporting MMM format in edit mode for any of the following:
There are no plans to support month-letters (MMM format) in edit mode.
Viktor Snezhko"] Hi Svetlana, There are no plans to support month-letters (MMM format) in edit mode.
Thanks, Viktor.
Can this be added to the wish list and what is the likelihood of this to be implemented in the near future?