This commit is contained in:
sayliraut
2024-07-30 18:02:33 +05:30
parent 34a6227abf
commit c0c521451e

View File

@@ -98,7 +98,7 @@ $currentPage = 'manage-reports';
<script>
// Initialize Flatpickr for the date range with placeholders and set maxDate to today
flatpickr("#startDate", {
dateFormat: "m/d/Y",
dateFormat: "Y-m-d",
maxDate: "today",
onChange: function (selectedDates, dateStr) {
// Set the minimum date for the end date input
@@ -107,7 +107,7 @@ $currentPage = 'manage-reports';
});
flatpickr("#endDate", {
dateFormat: "m/d/Y",
dateFormat: "Y-m-d",
maxDate: "today",
});