i18n.datetime.amPm

Since: Editor 1.5.2

Time picker ante meridiem / post meridiem (am / pm) text.
Please note - this property requires the Editor extension for DataTables.

Description

This option can be used to set the text that the datetime time picker element will show if the input format includes a meridiem field.

The array must have exactly two elements in it. The first item in the array is the value that datetime will use to display ante meridiem values and the second for post meridiem.

Type

This option can be given in the following type(s):

Example

Capitalise AM / PM:

var editor = new DataTable.Editor({
	ajax: 'api/staff',
	table: '#myTable',
	i18n: {
		datetime: {
			amPm: ['AM', 'PM']
		}
	}
});

Related

The following options are directly related and may also be useful in your application development.