Look at this piece of code:
var d = new Date();
trace( d );
trace( "Today's date:" + d.getFullYear()+"/"+d.getMonth()+"/"+d.getDate());
And the output:
Tue Apr 08 10:56:03 GMT-0400 (Eastern Daylight Time) 2003
Today's date:2003/3/8
Apr = 3?
var d = new Date();
trace( d );
trace( "Today's date:" + d.getFullYear()+"/"+d.getMonth()+"/"+d.getDate());
And the output:
Tue Apr 08 10:56:03 GMT-0400 (Eastern Daylight Time) 2003
Today's date:2003/3/8
Apr = 3?
Comment