# getFullYear() method is not working

**URL:** https://forum.kirupa.com/t/getfullyear-method-is-not-working/262665
**Category:** flash
**Created:** [June 8, 2008, 8:23pm UTC](https://forum.kirupa.com/t/getfullyear-method-is-not-working/262665 "2008-06-08T20:23:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Paradise\_Wolf](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@Paradise\_Wolf](https://forum.kirupa.com/u/Paradise_Wolf)
#### Post date: [June 8, 2008, 8:23pm UTC](https://forum.kirupa.com/t/getfullyear-method-is-not-working/262665/1 "2008-06-08T20:23:30Z")

</div>

**[FONT=Arial][SIZE=3]I created a dynamic text box linked to a movie clip’s keyframe in one layer and the actions code in another layer in order to insert text by code (Actionscript 3.0).[/SIZE][/FONT]**

**[FONT=Arial][SIZE=3]Oddly enough, the getFullYear(), in the below code, is not retrieving the current year, so, instead of getting the output “© 2008 Artemis Art”, I get just “© Artemis Art”.[/SIZE][/FONT]**

**[FONT=Arial][SIZE=3]Yet when I did a very simple Flash program ( just the main stage, one layer with a link to a dynamic text box and the below code ) it WORKS ![/SIZE][/FONT]**

**[FONT=Arial][SIZE=3]What is the bug in this situation ? [/SIZE][/FONT]**

**[FONT=Arial][SIZE=3]Here is the code:[/SIZE][/FONT]**

```auto

[FONT=Arial][COLOR=blue][COLOR=blue][FONT=Arial][SIZE=3]**var ydate:Date = new Date();**[/SIZE][/FONT][/COLOR]
 
[COLOR=blue][FONT=Arial][SIZE=3]**var yy = ydate.getFullYear();**[/SIZE][/FONT][/COLOR]
 
[COLOR=blue][FONT=Arial][SIZE=3] **coright.text = "© "+ yy + " Artemis Art";** [/SIZE][/FONT][/COLOR]
[/COLOR][/FONT]

```

---

<div class="post-metadata">

### Author: ![Gazurt](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gazurt/32/4060_2.png) [@Gazurt](https://forum.kirupa.com/u/Gazurt)
#### Post date: [June 8, 2008, 9:11pm UTC](https://forum.kirupa.com/t/getfullyear-method-is-not-working/262665/2 "2008-06-08T21:11:05Z")

</div>

That’s a epic question :lol:

---

<div class="post-metadata">

### Author: ![Paradise\_Wolf](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@Paradise\_Wolf](https://forum.kirupa.com/u/Paradise_Wolf)
#### Post date: [June 8, 2008, 10:04pm UTC](https://forum.kirupa.com/t/getfullyear-method-is-not-working/262665/3 "2008-06-08T22:04:13Z")

</div>

> [@Gazurt;2339035](#):
>
> That’s a epic question :lol:

**What do you mean, Gazurt ?** I:-)
