This commit is contained in:
seb
2026-10-15 10:20:40 +02:00
parent 37acaf9554
commit 40bf70a41c
4 changed files with 26 additions and 2 deletions

View File

@@ -77,6 +77,14 @@ export function numberDisplay(value) {
return String(value);
}
export function todayInputValue() {
const d = new Date();
const year = d.getFullYear();
const month = String(d.getMonth() + 1).padStart(2, '0');
const day = String(d.getDate()).padStart(2, '0');
return `${year}-${month}-${day}`;
}
export function dateInputValue(iso) {
if (!iso) return '';
const d = new Date(iso);