diff --git a/index.html b/index.html
index 2c215ea..6cb3393 100644
--- a/index.html
+++ b/index.html
@@ -121,7 +121,7 @@
In-Store Information
-
-
-
-
-
-
@@ -504,6 +529,31 @@
// Initialize
updateProgressBar();
+
+ // Populate year dropdown with current year and next 5 years
+ const yearSelect = document.getElementById('startingYear');
+ const currentYear = new Date().getFullYear();
+ for (let year = currentYear; year <= currentYear + 5; year++) {
+ const option = document.createElement('option');
+ option.value = year;
+ option.textContent = year;
+ yearSelect.appendChild(option);
+ }
+
+ // Handle month and year selection to set full date with day = 1
+ function updateStartingDate() {
+ const month = document.getElementById('startingMonth').value;
+ const year = document.getElementById('startingYear').value;
+
+ if (month && year) {
+ // Format: YYYY-MM-01
+ document.getElementById('startingDate').value = `${year}-${month}-01`;
+ console.log('Starting date set to:', document.getElementById('startingDate').value);
+ }
+ }
+
+ document.getElementById('startingMonth').addEventListener('change', updateStartingDate);
+ document.getElementById('startingYear').addEventListener('change', updateStartingDate);
// Event listeners for navigation buttons
prevBtn.addEventListener('click', goToPreviousStep);