you ca try comparing elements of it such as getDate() and getMonth() instead
of the whole thing

var today=new Date();
trace(today.getMonth());


On 5/2/06, Pete Hotchkiss <[EMAIL PROTECTED]> wrote:

Is there a simple way to check if an instance of a date function is
today.

Ie

var foo = new Date();
trace(foo);

var bar = new Date(2006, 04, 02);

trace(bar)

trace(foo == bar);

Obviously that returns false as the time is incorrect.

There must be a simple way ?

Pete



_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to