i18n.datetime.weekdays
Date picker week day names.
Please note - this property requires the Editor extension for DataTables.
Description
This option can be used to set the strings that the datetime input widget displayed for the week day names. In order to display the calendar horizontally in a relatively compact space it is recommended that you use an abbreviated version of the week day names for the language you wish to use (three characters for example).
The array must contain exactly seven values. The first entry is always the string that will be used for Sunday, the second for Monday, etc. If you wish to change the first day of the week that is shown in the calendar please use the firstDay option of the datetime field - not this array!
Type
This option can be given in the following type(s):
Examples
Short week day names:
var editor = new DataTable.Editor({
ajax: 'api/staff',
table: '#myTable',
i18n: {
datetime: {
weekdays: ['Su', 'M', 'T', 'W', 'Th', 'F', 'Sa']
}
}
});Use French week day names:
var editor = new DataTable.Editor({
ajax: 'api/staff',
table: '#myTable',
i18n: {
datetime: {
weekdays: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam']
}
}
});Related
The following options are directly related and may also be useful in your application development.