Fix: history board monthday
This commit is contained in:
1 parent
1a4a5fd4ee
commit
bc21cc77a7
1 file changed
+4
@@ -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