Reference: API

The DateTime picker for DataTables and its extensions has its own API which you can use to control the picker if you are embedding it into your own application. The API is accessed as methods on the result of using the new DateTime() constructor - e.g.:

let picker = new DateTime(document.getElementById('myInput'));

You can then use methods such as picker.min(...);.

Library Name Summary
DateTime Core

DateTime.use()

Set the formatting / parsing library to use.

DateTime Core

destroy()

Destroy a DateTime control.

DateTime Core

display()

Get / set the month and year for the current display.

DateTime Core

errorMsg()

Either sets the error message or removes it

DateTime Core

hide()

Hides the DateTime instance

DateTime Core

max()

Set the max date for the DateTime instance

DateTime Core

min()

Set the min date for the DateTime instance.

DateTime Core

owns()

Check if an element belongs to this control.

DateTime Core

val()

Get / set the value of the DateTime instance.

DateTime Core

valFormat()

Get / set a formatted value for the instance.