Fix: history board monthday

This commit is contained in:
2018-09-14 23:10:41 +09:00
parent 1a4a5fd4ee
commit bc21cc77a7
+4
View File
@@ -2,7 +2,11 @@ function StringUtil() {
} }
StringUtil.printMonthDay = function(date) { StringUtil.printMonthDay = function(date) {
console.log(date);
let dateTime = new Date(date); let dateTime = new Date(date);
console.log(dateTime);
console.log("month : " + dateTime.getMonth());
console.log("date : " + dateTime.getDate());
return (dateTime.getMonth() + 1) + "월 " + dateTime.getDate() + "일"; return (dateTime.getMonth() + 1) + "월 " + dateTime.getDate() + "일";
} }