엑셀 날짜 변환 함수 제거

This commit is contained in:
leedj312
2025-05-02 16:16:51 +09:00
parent 90ac89011e
commit 8584ed0162
2 changed files with 4 additions and 15 deletions
@@ -106,15 +106,16 @@ export const rainHeadNm: chHeadType[] = [
];
export const rainChkgdnHeadList: TableUpperProps[] = [
{ id: "order", title: "순번", rowSpan: true },
{ id: "cityText", title: "시도", rowSpan: true },
{ id: "sggText", title: "시군구", rowSpan: true },
{ id: "bdstNm", title: "시설명", rowSpan: true },
{ id: "operMngCd", title: "운영관리형태", rowSpan: true },
{ id: "flowCheck", title: "유량측정방법", rowSpan: true },
{ id: "yearFee", title: "연간운영비(원/년)", rowSpan: true },
{ id: "rainDtnbaOpct", title: "빗물저류조용량(m³)", rowSpan: true },
{ id: "oilqMeasMthd", title: "유량측정방법", rowSpan: true },
{ id: "anlOperCst", title: "연간운영비(원/년)", rowSpan: true },
{ id: "dtfcltCpct", title: "빗물저류조용량(m³)", rowSpan: true },
{ id: "chckYmd", title: "점검일", rowSpan: true },
{ id: "utztnUsgCd", title: "이용용도" },
{ id: "totalSplyUswtrUtztnQnt", title: "연간보급수이용량(m³)" },
-12
View File
@@ -64,15 +64,3 @@ export const getCity = (val: string, sggCd: SelectDataType[]) => {
//엑셀은 날짜가 숫자로 나와서 만든 함수
export const excelSerialToDateString = (excelDate: number|undefined): string => {
const excelEpoch = new Date(1899, 11, 30); // Excel 기준일 (1900-01-01보다 하루 전)
let date
if(excelDate){
date = new Date(excelEpoch.getTime() + excelDate * 86400000);
}else{
date =new Date()
}
return date.toISOString().split("T")[0]?.replaceAll("-",'') || ""; // "YYYY-MM-DD"
};