Reference: Options

The DateTime picker library for DataTables and its extensions has its own set of options which can be enabled, disabled and customied to meet your needs if you are embedding the DateTime picker into your own application. Customisation of the options is performed by passing in an object as the second parameter to the DateTime constructor:

new DateTime(document.getElementById('myInput'), {
    format: 'D MMM YYYY HH:mm'
});

Or if you prefer to use jQuery, pass the options object into the $().dtDateTime() function:

$('#myInput').dtDateTime({
    format: 'D MMM YYYY HH:mm'
});
Library Name Summary
DateTime Core

buttons

Container for navigation buttons

DateTime Core

buttons.clear

Enable button to clear the value

DateTime Core

buttons.today

Enable button move "today" into view

DateTime Core

disableDays

Specify days that cannot be selected.

DateTime Core

firstDay

Change which day of the week is first on the calendar.

DateTime Core

format

The format of the date data.

DateTime Core

hoursAvailable

Sets which hours are selectable.

DateTime Core

i18n

DateTime language options.

DateTime Core

i18n.amPm

The strings appended to hours to distinguish between am and pm.

DateTime Core

i18n.clear

Clear button text value

DateTime Core

i18n.hours

Label for the hours selection.

DateTime Core

i18n.minutes

Label for the minutes selection.

DateTime Core

i18n.months

Text used to indicate the months available for selection.

DateTime Core

i18n.next

String to use in the next button.

DateTime Core

i18n.previous

String to use in the previous button.

DateTime Core

i18n.seconds

Label for the seconds selection.

DateTime Core

i18n.today

Today button text value

DateTime Core

i18n.unknown

String to use if a value is unknown.

DateTime Core

i18n.weekdays

Text used to indicate the days of the week.

DateTime Core

locale

The locale that DateTime should use.

DateTime Core

maxDate

Set the maximum date that can be selected and displayed.

DateTime Core

minDate

Set the minimum date that can be selected and displayed.

DateTime Core

minutesAvailable

Sets which minutes are selectable.

DateTime Core

onChange

Function that is called whenever the value selected for DateTime changes.

DateTime Core

secondsAvailable

Sets which seconds are selectable.

DateTime Core

showWeekNumber

Whether the week number should be shown.

DateTime Core

yearRange

The range of years provided for selection.