API
The DateTime component provides a comprehensive API that can be used to get and set values in controls that use the library, and also to provide manipulation options. Please see the list below for the full set of API methods that are available, and click through to get details of each one.
The DateTime API can be accessed through the object that is returned from its constructor:
let dt = new DataTable.DateTime('#myInput', {
// ... options
});
| Name | Summary | Library | Group |
|---|---|---|---|
Set the formatting / parsing library to use. | |||
Destroy a DateTime control. | |||
Get / set the month and year for the current display. | |||
Either sets the error message or removes it | |||
Hides the DateTime instance | |||
Set the max date for the DateTime instance | |||
Set the min date for the DateTime instance. | |||
Check if an element belongs to this control. | |||
Get / set the value of the DateTime instance. | |||
Get / set a formatted value for the instance. |