# Date in dynamic text box wont show up

**URL:** https://forum.kirupa.com/t/date-in-dynamic-text-box-wont-show-up/111743
**Category:** Uncategorized
**Created:** [May 30, 2004, 4:47pm UTC](https://forum.kirupa.com/t/date-in-dynamic-text-box-wont-show-up/111743 "2004-05-30T16:47:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Kristopher](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kristopher/32/501_2.png) [@Kristopher](https://forum.kirupa.com/u/Kristopher)
#### Post date: [May 30, 2004, 4:47pm UTC](https://forum.kirupa.com/t/date-in-dynamic-text-box-wont-show-up/111743/1 "2004-05-30T16:47:16Z")

</div>

Hey guys. I put some AS on a MC that has a dynamic text box in it. here’s the code on the dateMC:

onClipEvent(load) {  
currentTime = new Date();  
month = currentTime.getMonth();  
day = currentTime.getDay();

```
 if(month == 1) {
     month = "January";
 }
 else if(month == 2) {
     month = "February";
 }
 else if(month == 3) {
     month = "March";
 }
 else if(month == 4) {
     month = "April";
 }
 else if(month == 5) {
     month = "May";
 }
 else if(month == 6) {
     month = "June";
 }
 else if(month == 7) {
     month = "July";
 }
 else if(month == 8) {
     month = "August";
 }
 else if(month == 9) {
     month = "September";
 }
 else if(month == 10) {
     month = "October";
 }
 else if(month == 11) {
     month = "November";
 }
 else {
     month = "December";
 }

```

}

onClipEvent(enterFrame) {  
this.date = month + " " + day + “, 2004”;  
}

When I run it, the result in the text box is “April 0, 2004”

Any help?
