Fix: DateUtil.getDate bug

This commit is contained in:
jisangs committed 2018-05-30 09:13:45 +09:00
1 parent f1cab7de3f
commit cec653abb7
8 files changed
+23 -34

No files matched your search

+2 -1
View File
@@ -1,7 +1,8 @@
class DateUtil {
static getYYYYMMDD(date) {
return date.toISOString().slice(0,10);
// return date.toISOString().slice(0,10);
return date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
}
static getHHMMSS(date) {