- |
+ |
diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules/Detail.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules/Detail.jsx
index 2fab034..af8a6aa 100644
--- a/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules/Detail.jsx
+++ b/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules/Detail.jsx
@@ -36,6 +36,25 @@ function SchedulesDetail(props) {
}
+ const convertDate = (str) => {
+ if( !str ) {
+ return null;
+ }
+ let year = str.substring(0, 4);
+ let month = str.substring(5, 7);
+ let date = str.substring(8, 10);
+ let hour = str.substring(11, 13);
+ let minute = str.substring(14, 16);
+ return {
+ year: year,
+ month: month,
+ date: date,
+ hour: hour,
+ minute: minute,
+ dateForm: year + "-" + month + "-" + date + " " + hour + ":" + minute + ""
+ }
+ }
+
const onClickDeleteSchedule = (schdulId) => {
const deleteBoardURL = `/schedule/${schdulId}`;
@@ -115,8 +134,8 @@ function SchedulesDetail(props) {
{scheduleDetail.location}
- - 날짜/시간
- - {scheduleDetail.startDate} ~ {scheduleDetail.endDate}
+ - 날짜/시간
+ - { convertDate(scheduleDetail?.startDate)?.dateForm} ~ {convertDate(scheduleDetail?.endDate)?.dateForm}
- 내용
|