Fix: history board monthday
This commit is contained in:
@@ -2,7 +2,6 @@ function StringUtil() {
|
||||
}
|
||||
|
||||
StringUtil.printMonthDay = function(date) {
|
||||
console.log(date);
|
||||
// let dateTime = new Date(date);
|
||||
var a = date.split(" ");
|
||||
var d = a[0].split("-");
|
||||
@@ -10,9 +9,6 @@ StringUtil.printMonthDay = function(date) {
|
||||
if(a.count > 0)
|
||||
var t = a[1].split(":");
|
||||
var dateTime = new Date(d[0],(d[1]-1),d[2],t[0],t[1],t[2]);
|
||||
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