Fix: get ranking with date, time
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class DateUtil {
|
||||
|
||||
static getYYYYMMDD(date) {
|
||||
return date.toISOString().slice(0,10);
|
||||
}
|
||||
|
||||
static getHHMMSS(date) {
|
||||
return StringUtil.getNumberStartWithZero(date.getHours(), 2) + ":"
|
||||
+ StringUtil.getNumberStartWithZero(date.getMinutes(), 2) + ":"
|
||||
+ StringUtil.getNumberStartWithZero(date.getSeconds(), 2);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user