Forums > Javascript

setDate

March 21, 2012 | 7:59 am

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: }

March 21, 2012 | 8:20 am

It should be


d.getFullYear()

p


March 21, 2012 | 8:55 am

oh well


Viewing 3 posts - 1 through 3 (of 3 total)