{hero}

i18n.unknown

Since: DateTime 1.0.0

String to use if a value is unknown.
Please note - this property requires the DateTime extension for DataTables.

Description

This value is used to represent values that are unknown within DateTime.

Type

string

Description:

The string that is used if a value is unknown.

Default

  • Value: '-'

As default a '-' is used to represent unknown values.

Example

Change the value for i18n.unknown:

$(document).ready(function () {
	new DateTime(document.getElementById('test'), {
		i18n: {
			unknown: 'n/a'
		}
	});
});