i18n.datetime.months
Date picker month names.
Please note - this property requires the Editor extension for DataTables.
Description
This option is used to define the month names that are shown in the datetime widget. Specifically the month that the calendar shows will be drawn at the top of the widget and when clicked it will show a select list that the end user can choose from - the list of options are defined by this array.
The array must contain exactly 12 items. The first entry is the string that will be used for January, the second for February, etc.
Type
This option can be given in the following type(s):
Examples
Display month short names:
var editor = new DataTable.Editor({
ajax: 'api/staff',
table: '#myTable',
i18n: {
datetime: {
months: [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec'
]
}
}
});Use French month names in the calendar month list:
var editor = new DataTable.Editor({
ajax: 'api/staff',
table: '#myTable',
i18n: {
datetime: {
months: [
'Janvier',
'Février',
'Mars',
'Avril',
'Mai',
'Juin',
'Juillet',
'Août',
'Septembre',
'Octobre',
'Novembre',
'Décembre'
]
}
}
});Related
The following options are directly related and may also be useful in your application development.