Fix: icon color for out, in, pressed
Fix: make lib/util directory Add: refresh browser if app goes wrong
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
function DateUtil() {
|
||||
}
|
||||
|
||||
DateUtil.getYYYYMMDD = function(date) {
|
||||
// return date.toISOString().slice(0,10);
|
||||
return date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
|
||||
}
|
||||
|
||||
DateUtil.getHHMMSS = function(date) {
|
||||
return StringUtil.getNumberStartWithZero(date.getHours(), 2) + ":"
|
||||
+ StringUtil.getNumberStartWithZero(date.getMinutes(), 2) + ":"
|
||||
+ StringUtil.getNumberStartWithZero(date.getSeconds(), 2);
|
||||
}
|
||||
Reference in New Issue
Block a user