{hero}

i18n.months

Since: DateTime 1.0.0

Text used to indicate the months available for selection.
Please note - this property requires the DateTime extension for DataTables.

Description

As standard DateTime will use the values detailed above within the calendar to represent each of the months.

Type

array

Array with 12 elements each representing a month of the year.

Default

  • Value: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']

An array containing values for the months.

Example

Abbreviated values for days Months:

$(document).ready(function () {
	new DateTime(document.getElementById('test'), {
		i18n: {
			months: [
				'Jan',
				'Feb',
				'Mar',
				'Apr',
				'May',
				'Jun',
				'Jul',
				'Aug',
				'Sep',
				'Oct',
				'Nov',
				'Dec'
			]
		}
	});
});