{hero}

i18n.hours

Since: DateTime 1.0.0

Label for the hours selection.
Please note - this property requires the DateTime extension for DataTables.

Description

This value is used as a label next to the selection for the value of hours within DateTime.

Type

string

Description:

The string value for the label to indicate hours selection.

Default

  • Value: 'Hour'

Example

Change the value for i18n.hours:

$(document).ready(function () {
	new DateTime(document.getElementById('test'), {
		format: 'HH:mm',
		i18n: {
			hours: 'h'
		}
	});
});