underligt, er der nok en forklaring på
, men prøv
function prepend(aOrg,aChar,aLength){
while(aOrg.length<aLength){
aOrg=aChar+aOrg;
}
return aOrg;
}
d=new Date(0,0,0,0,0,0,801260);
alert(prepend(d.getHours().toString(),"0",2)+":"+prepend(d.getMinutes().toString(),"0",2)+":"+prepend(d.getSeconds().toString(),"0",2)+":"+prepend(d.getMilliseconds().toString(),"0",3));
Indlæg senest redigeret d. 29.09.2007 23:28 af Bruger #5620