Feat: Add & integrate add, edit, detail page

This commit is contained in:
hasyim_kai
2025-11-05 13:19:07 +07:00
parent 331f4a6b20
commit a361922e32
15 changed files with 475 additions and 211 deletions
+8
View File
@@ -41,4 +41,12 @@ export function getAge(dateString: string, comparedDate?: string): { idFormat: s
idFormat,
extFormat
};
}
export function formatDateYyyyMmDd(isoDateString: string): string {
const date = new Date(isoDateString);
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
return `${year}-${month}-${day}`;
}