getFullDate: not working properly

i was using one of kirupa’s tutorials to display the date in one of my swf. The date and the year are working fine but the month is displayed wrong, ie january=month 0 and december=month 11. Is there anyway to fix this?


my code:

mydate = new Date(year, month, date, hour, min, sec, ms);
code = mydate.getDate()+"/"+mydate.getMonth()+"/"+mydate.getFullYear();