changes
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user