Range mode lets a visitor choose a start and an end date in one calendar โ the pattern used by booking and reporting forms.
Selected values are joined with the range separator ( to by default). For two linked inputs, flatpickr also ships a rangePlugin.
<input id="picker" placeholder="Select a date range...">
<script>
flatpickr("#picker", { mode: "range", dateFormat: "Y-m-d" });
</script>
โ Back to the full demo ยท Home ยท Guide