Hi,
Is there any plans to support alphanumeric date formats like dd-MMM-yyyy in the editor input box? Thanks.
Fred
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.
Hi Viktor,
1. Wrong behavior: Me.dcPickDateTime.CalendarLayout.Culture = New System.Globalization.CultureInfo("en-US", False)Me.dcPickDateTime.CalendarLayout.Culture.DateTimeFormat.ShortDatePattern="dd-MMM-yyyy" Select Jan 10, 2008
Before focus moved: 10/01/2008
10/01/2008 is misleading in this case and has nothing to do with either en-US culture or with regional settings 2. Correct behavior: Me.dcPickDateTime.CalendarLayout.Culture = New System.Globalization.CultureInfo("en-US", False) Select Jan 10, 2008 Before focus moved: 01/10/2008 After focus moved: 01/10/2008
Select Jan 10, 2008
Thanks,
Svetlana shelkova
In edit mode WebDateChooser supports only digit fields. If you set MMM or MMMM, then the MM is used. To avoid confusion of customers I suggest you to disable long date format or do not customize Culture with explicit date-pattern. If you set explicit date pattern and use long date format, then you better set both long and short patterns. Otherwise, different cultures may get mismatched order of fields and users will be confused.
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 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.