diff --git a/frontend/lib/registry/components/table-list/TableListComponent.tsx b/frontend/lib/registry/components/table-list/TableListComponent.tsx index 97819a94..c645cde4 100644 --- a/frontend/lib/registry/components/table-list/TableListComponent.tsx +++ b/frontend/lib/registry/components/table-list/TableListComponent.tsx @@ -1200,6 +1200,22 @@ export const TableListComponent: React.FC = ({ return String(value); } + // 날짜 타입 포맷팅 (yyyy-mm-dd) + if (inputType === "date" || inputType === "datetime") { + if (value) { + try { + const date = new Date(value); + 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}`; + } catch { + return String(value); + } + } + return "-"; + } + // 숫자 타입 포맷팅 if (inputType === "number" || inputType === "decimal") { if (value !== null && value !== undefined && value !== "") { @@ -1224,7 +1240,10 @@ export const TableListComponent: React.FC = ({ if (value) { try { const date = new Date(value); - return date.toLocaleDateString("ko-KR"); + 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}`; } catch { return value; }