feat: implement native date pickers and YYYY-MM-DD format in Missing Data view

This commit is contained in:
Christian Vidal Wolf
2026-04-14 18:55:23 +02:00
parent d4512aa4e6
commit 7c7258d87c
2 changed files with 14 additions and 15 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ export default function App() {
if (typeof val === 'number' && val >= 25569 && val <= 60000) {
const excelEpoch = new Date(1899, 11, 30);
const date = new Date(excelEpoch.getTime() + val * 86400000);
return date.toLocaleDateString('en-GB', { day: '2-digit', month: '2-digit', year: 'numeric' });
return date.toISOString().split('T')[0]; // Returns YYYY-MM-DD
}
return val;
}