Fix: history board monthday
This commit is contained in:
@@ -2,7 +2,11 @@ function StringUtil() {
|
||||
}
|
||||
|
||||
StringUtil.printMonthDay = function(date) {
|
||||
console.log(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() + "일";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user