Fix: history board monthday

This commit is contained in:
2018-09-14 23:32:50 +09:00
parent c53465b00d
commit 441b9513bf
2 changed files with 7 additions and 11 deletions
-4
View File
@@ -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() + "일";
}