setDate

Mar 21, 2012 at 7:59am

setDate

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: }
#62513
Mar 21, 2012 at 8:20am

It should be


d.getFullYear()

p

#225804
Mar 21, 2012 at 8:55am

oh well

#225805

You must be logged in to reply to this topic.