Fix: DateUtil.getDate bug
This commit is contained in:
1 parent
f1cab7de3f
commit
cec653abb7
8 files changed
+23
-34
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user