Improve search page

This commit is contained in:
2021-02-08 16:57:14 +01:00
parent 651d7b55e7
commit 731040a0fb
3 changed files with 0 additions and 22 deletions
-19
View File
@@ -14,25 +14,6 @@ var week = new Array('Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta'
class momentG {
static get(date){
if(typeof date.getMonth != 'function') {
console.log('not a function')
date = new Date(date)
}
var e = {
day : week[date.getDay()],
dd : ((date.getDate()).toString()).padStart("2","0"),
mm : ((date.getMonth()+1).toString()).padStart("2","0"),
MMMM : month[date.getMonth()],
yyyy : date.getFullYear(),
hour : date.getHours(),
minu : ((date.getMinutes()).toString()).padStart("2","0"),
}
return e;
}
static run(date, formate , wgs){
if(typeof date.getMonth != 'function') {