mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Improve search page
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user