setDate

yair reshef's icon

why not working?

autowatch=1;
var d = new Date();
function msg_int(a){

    d.setTime(a*60000);
    post( d.getDate() + "-" +d.getMonth() + "-" + d.getFullYear +"n");
}

this code throws when i send it an int (or anything)

js: 1-0-function getFullYear() {
js:     [native code]
js: }

pdelges's icon

It should be

d.getFullYear()

p

yair reshef's icon