toror33

연락처 날짜 insert 오류 수정

...@@ -63,8 +63,9 @@ router.post('/contact_upload', upload.single('file'), function(req, res, next) { ...@@ -63,8 +63,9 @@ router.post('/contact_upload', upload.single('file'), function(req, res, next) {
63 else if(j==3){ 63 else if(j==3){
64 temp = "D" + (i+1); 64 temp = "D" + (i+1);
65 added_date.push(firstWSheet[temp].v); 65 added_date.push(firstWSheet[temp].v);
66 - sqlquery += '","' + added_date[i-1] + '"),'; 66 + sqlquery += '",STR_TO_DATE("' + added_date[i-1] + '",' + "'%Y.%m.%d')),";
67 - } 67 + }
68 +
68 } 69 }
69 } 70 }
70 sqlquery = sqlquery.substring(0,sqlquery.length-1); 71 sqlquery = sqlquery.substring(0,sqlquery.length-1);
......