What you are looking for is the DateFormatter. var df:DateFormatter = new DateFormatter(); df.formatString = "YYYY-DD-MM"; trace(df.format(longdate));
HTH, Nate On Tue, Jan 20, 2009 at 6:00 PM, Link Mckinney <[email protected]> wrote: > I am just simply trying to set a simple date > > var longdate:Date = new Date(2030,12,30); > > this suppose to set longdate to 2030-12-30 but insead it creates > > Thu Jan 30 00:00:00 GMT-500 2031 > > Why can't I just create a simple date based on what values I give it?wtf > > thanks Link > > > -- Cheers, Nate ---------------------------------------- http://blog.natebeck.net

