https://github.com/DataTables/DateTime
Data / time picker used for DataTables.net components
https://github.com/DataTables/DateTime
Last synced: 3 months ago
JSON representation
Data / time picker used for DataTables.net components
- Host: GitHub
- URL: https://github.com/DataTables/DateTime
- Owner: DataTables
- License: mit
- Created: 2020-01-17T08:47:49.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-11T10:37:46.000Z (3 months ago)
- Last Synced: 2024-11-11T11:35:07.654Z (3 months ago)
- Language: JavaScript
- Size: 697 KB
- Stars: 10
- Watchers: 6
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: license.txt
Awesome Lists containing this project
- jimsghstars - DataTables/DateTime - Data / time picker used for DataTables.net components (JavaScript)
README
# DateTime picker
This library is a date and time picker that is available for use primarily in the [DataTables.net](//datatables.net) software and its extensions. The library can also be used for other applications if required (for example if you are using DataTables else where in your application and you would like consistency for the date / time pickers used in your UI).
## Installation
This library can be installed from npm using:
```
npm install --save datatables.net-datetime
```## Usage
Initialise on an `input` element using:
```js
new DateTime(document.getElementById('test'), {});
```or jQuery style:
```js
$('#test').dtDateTime();
```Please refer to [the DataTables site](//datatables.net/extensions/datetime) for a full description of options and API methods. A set of examples are also included.