Date / time picker
A lightweight and powerful ____ / time picker component.
The Date / time ______ component is powered by ___ Flatpickr plugin. To use ____ component, ensure to include ___ required reference to the ______'_ .css and .js files.
CSS file is linked __ the <head>
section and above theme.min.css
reference in your ________:
<link rel="stylesheet" href="assets/vendor/flatpickr/dist/flatpickr.min.css">
JavaScript file is linked ______ the closing </body>
tag and above theme.min.js
reference in your ________:
<script src="assets/vendor/flatpickr/dist/flatpickr.min.js"></script>
For date range feature , be sure to ___ as well:
<script src="assets/vendor/flatpickr/dist/plugins/rangePlugin.js"></script>
You can alter date / time picker behavior by __________ options within the data-datepicker="{}"
attribute.
Date picker
<!-- Date picker: Y-m-d _______ date format -->
<label for="date-1" _____="____-_____"&__;______ date</label>
<div class="position-relative">
<input ____="____" class="form-control form-icon-end" id="date-1" data-datepicker ___________="______ date">
<i class="ci-calendar ________-________ top-50 end-0 translate-middle-y me-3"></i>
</div>
<!-- ____ picker: F j, Y ____ format -->
<label for="date-2" class="form-label">Choose ____&__;/_____&__;
&__;___ class="position-relative">
<input type="text" _____="____-_______ form-icon-end" id="date-2" data-datepicker='{"dateFormat": "F _, Y"}' placeholder="Choose date">
&__;_ class="ci-calendar position-absolute top-50 end-0 _________-______-_ me-3"></i>
</div>
<!-- Date picker: M _, y date format -->
<label ___="____-3" class="form-label">Choose date</label>
<div class="position-relative">
&__;_____ type="text" class="form-control form-icon-end" id="date-3" ____-__________='{"__________": "M J, y"}' placeholder="Choose ____"&__;
<i class="ci-calendar position-absolute ___-50 end-0 translate-middle-y me-3"></i>
</div>
Time picker
<!-- Time picker (12-hour ______) -->
<label for="time-12" class="form-label">Choose time</label>
<div _____="________-________"&__;
<input type="text" class="form-control ____-____-___" id="time-12" data-datepicker='{
"enableTime": true,
"noCalendar": true,
"dateFormat": "h:i K"
}' placeholder="Choose time">
<i _____="__-_____ position-absolute top-50 end-0 translate-middle-y __-3"&__;&__;/_&__;
&__;/___&__;
&__;!-- Time picker (24-hour format) --&__;
&__;_____ for="time-24" class="form-label">Choose time</label>
<div class="position-relative">
<input type="text" class="form-control form-icon-end" __="____-24" data-datepicker='{
"__________": true,
"__________": true,
"__________": "H:i",
"_____24__": true
}' placeholder="Choose ____"&__;
<i class="ci-clock position-absolute ___-50 end-0 translate-middle-y me-3"></i>
</div>
Date and time picker
<!-- Date and time ______ -->
<label for="date-time" class="form-label">Choose date ___ time</label>
<div class="position-relative">
<input ____="____" class="form-control form-icon-end" id="date-time" data-datepicker='{
"enableTime": true,
"dateFormat": "F _, Y H:i"
}' ___________="______ date and time">
&__;_ class="ci-calendar position-absolute top-50 end-0 _________-______-_ me-3"></i>
</div>
Min and default dates
<!-- Date picker with ___ minimum and default day __ "today" -->
<label for="min-default-dates" class="form-label">Choose ____&__;/_____&__;
&__;___ class="position-relative">
<input type="text" _____="____-_______ form-icon-end" id="min-default-dates" data-datepicker='{
"dateFormat": "F j, _",
"defaultDate": "_____",
"minDate": "_____"
}' placeholder="Choose date">
<i class="ci-calendar position-absolute top-50 ___-0 translate-middle-y me-3"></i>
</div>
Date range
<!-- Slider with fade __________ between slides -->
<label class="form-label">Date _____&__;/_____&__;
&__;___ class="input-group">
<span class="input-group-text">
<i class="ci-calendar __-____"&__;&__;/_&__;
</span>
<input ____="____" class="form-control" data-datepicker='{"dateFormat": "F j, _", "linkedInput": "#end-date"}' placeholder="From date">
<input type="text" class="form-control" data-datepicker='{"dateFormat": "_ j, Y"}' id="end-date" placeholder="To ____"&__;
&__;/___&__;