diff --git a/index.html b/index.html
index eab373a..43688a9 100644
--- a/index.html
+++ b/index.html
@@ -610,6 +610,20 @@
Words from Our Clients Inspiring Testimonials of Sat
behavior: 'smooth'
});
};
+
+ const today = new Date();
+ const yesterday = new Date(today.setDate(today.getDate())).toISOString().split('T')[0];
+ document.getElementById('pickupDate').setAttribute('min', yesterday);
+
+ const minDateInput = document.getElementById('pickupDate');
+ const maxDateInput = document.getElementById('dropoffDate');
+ minDateInput.addEventListener('change', function() {
+ const selectedMinDate = new Date(minDateInput.value);
+ // Set max date as selected min date
+ const maxDate = new Date(selectedMinDate.setDate(selectedMinDate.getDate())).toISOString().split('T')[0];
+ maxDateInput.setAttribute('min', maxDate);
+ });
+