# getFullDate: not working properly

**URL:** <https://forum.kirupa.com/t/getfulldate-not-working-properly/166743>\
**Category:** flash\
**Created:** [October 22, 2005, 12:00pm UTC](https://forum.kirupa.com/t/getfulldate-not-working-properly/166743 "2005-10-22T12:00:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matchi](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@matchi](https://forum.kirupa.com/u/matchi)\
**Post date:** [October 22, 2005, 12:00pm UTC](https://forum.kirupa.com/t/getfulldate-not-working-properly/166743/1 "2005-10-22T12:00:14Z")

</div>

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?

thankyou!

my code:

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