# Date(); to show when website was last updated?

**URL:** <https://forum.kirupa.com/t/date-to-show-when-website-was-last-updated/193023>\
**Category:** flash\
**Created:** [July 3, 2006, 6:23pm UTC](https://forum.kirupa.com/t/date-to-show-when-website-was-last-updated/193023 "2006-07-03T18:23:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 3, 2006, 6:23pm UTC](https://forum.kirupa.com/t/date-to-show-when-website-was-last-updated/193023/1 "2006-07-03T18:23:55Z")

</div>

I’m trying to inform people of how long ago the website was updated on the welcome screen. When I make a revision to the swf I plug in the date in the “Update” field and then it should subtract it from the day the website is viewed.

```auto

Now = new Date();
Update = new Date(2006, 7, 1);
Days = (Now-Update);
DaysRound = Math.floor(Days);
if (DaysRound == 1) {
	D = "Day";
} else {
	D = "Days";
}
_root.Status.text = "Updated "+DaysRound+" "+D+" Ago";

```

So it should say _Updated 2 Days Ago_ (today being the 3rd) but it says _Updated -2119732652 Days Ago_ so I obviously did something wrong… I think I confused myself… the math or syntax is wrong.
