close

# Datepickers

flatpickr is a lightweight and powerful datetime picker.

##### Basic

    <input class="form-control flatpickr1" type="text" placeholder="Select Date..">

    $(".flatpickr1").flatpickr();

##### DateTime

    <input class="form-control flatpickr2" type="text" placeholder="Select Date..">

    $(".flatpickr2").flatpickr({
        enableTime: true,
        dateFormat: "Y-m-d H:i",
    });