i18n.amPm
Since: DateTime 1.0.0
The strings appended to hours to distinguish between am and pm.
Please note - this property requires the DateTime extension for DataTables.
Description
The strings within the array are appended to the hours in the selection when a 12 hour format is being used. This allows the user to differentiate between am and pm times.
Type
Default
- Value:
['am', 'pm']
Example
Change the strings for am and pm:
$(document).ready(function () {
new DateTime(document.getElementById('test'), {
format: 'HH:mm A',
i18n: {
amPm: ['morning', 'afternoon']
}
});
});