Actually, it does produce today's date, but the individual properties of the Date object are not showing the correct values.

Example:

now.month shows a value of 7
now.day shows a value of 1

Doing a trace on 'now' though shows Mon Aug 27 12:59:18 GMT-0500 2007

Can anyone confirm this behavior? Shouldn't the properties of the 'now' Date object show the correct information?

Thanks,

Jurgen Beck


Jurgen Beck wrote:

I am tracking down the source of an issue with the Date() class.

It seems that the following line should be producing today's date:

var now:Date = new Date();

However, when running this today (8/27/2007), the resulting date object
contains values for 7/1/2007.

Has anyone run into this issue? Is this a bug?

Thanks,

Jurgen

Reply via email to