If you pass dateFormat: 'dd MM yy, D', then it will be 'September 1, 2011, chtv', 'chtv' is taken from the dayNamesShort array. If you pass dateFormat: 'dd MM yy, DD', then it will be 'September 1, 2011, Thursday', 'Thursday' is taken from the dayNames array. What do you need to pass to the dateFormat option for datepicker so that the input is 'September 1, 2011, Thu'? Thank..
1 answer
From your question I realized that you are using the UI / Datepicker. The easiest way in this situation is to redefine the dayNamesShort array, or rather the Russian localization, and explicitly specify the abbreviations you need. Or, as another option, find another datepicker, since today there are a great many of them.
PS Judging by the documentation in UI / Datepicker, two-letter abbreviations of the days of the week are not supported.
- What you propose to do is understandable. It was just wondering if it is possible to somehow use the dayNamesMin array from the localization file, because it is there, and the standard datepicker also has an option to override it. Just thought that there is some way to use it. But this, of course, is not critical and you can simply override the dayNamesShort array by specifying two-letter abbreviations. Thank. - lomaster September
|