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 | Container for navigation buttons | |
DateTime Core | Enable button to clear the value | |
DateTime Core | Enable button move "today" into view | |
DateTime Core | Specify days that cannot be selected. | |
DateTime Core | Change which day of the week is first on the calendar. | |
DateTime Core | The format of the date data. | |
DateTime Core | Sets which hours are selectable. | |
DateTime Core | DateTime language options. | |
DateTime Core | The strings appended to hours to distinguish between am and pm. | |
DateTime Core | Clear button text value | |
DateTime Core | Label for the hours selection. | |
DateTime Core | Label for the minutes selection. | |
DateTime Core | Text used to indicate the months available for selection. | |
DateTime Core | String to use in the next button. | |
DateTime Core | String to use in the previous button. | |
DateTime Core | Label for the seconds selection. | |
DateTime Core | Today button text value | |
DateTime Core | String to use if a value is unknown. | |
DateTime Core | Text used to indicate the days of the week. | |
DateTime Core | The locale that DateTime should use. | |
DateTime Core | Set the maximum date that can be selected and displayed. | |
DateTime Core | Set the minimum date that can be selected and displayed. | |
DateTime Core | Sets which minutes are selectable. | |
DateTime Core | Function that is called whenever the value selected for DateTime changes. | |
DateTime Core | Sets which seconds are selectable. | |
DateTime Core | Whether the week number should be shown. | |
DateTime Core | The range of years provided for selection. |