jDatePicker

Custom sandbox date-time picker. No dependencies. Pure JS.

Install

In order to use jDatePicker, you need to append the following files to your project:

Document's head tag
<link href="src/jDatePicker.min.css" rel="stylesheet">
Document's body tag
<script src="src/jDatePicker.min.js"></script>

Usage

Once your document DOM finishes loading, you may create one or more instance of jDatePicker:

const dPicker = new jDatePicker();
dPicker.open();

The open() method is required to be called in order for the UI to be displayed to the user.


Options

jDatePicker provides an array of options to help you integrate it into your project. Options must be declared whenever you create a new instance of jDatePicker, as described below:


License

This software is provided to you free of charge under CC BY 4.0 license.

» Read license terms here.


Notice

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Test instance

UI Language

Options output


            

User interface

  1. Date selection

    Allows for the date selection.
  2. Year control

    Allows for previous and next year selection.
  3. Month control

    Allows for previous and next month selection.
  4. Accept button

    Allows the user to confirm current date-time selection.
  5. Cancel button

    Allows the user to cancel and close jDatePicker.
  6. Time control

    Allows the selection of hour (left + - controls) and minutes (right + - controls).