SoFunction
Updated on 2025-04-06

Timestamp converted to time JS function of year, month, day and time


ormatDate:function(dateNum){
var date=new Date(dateNum*1000);
return ()+"-"+fixZero(()+1,2)+"-"+fixZero((),2)+" "+fixZero((),2)+":"+fixZero((),2)+":"+fixZero((),2);
function fixZero(num,length){
var str=""+num;
var len=;
var s="";
for(var i=length;i-->len;){
s+="0";
}
return s+str;
}
}