Not sure if this takes leap-year into acccount; assume it does.

var today:Date = new Date();
var future:Date = new Date();
future.setDate(future.getDate() + 3023);
trace(today);
trace(future);

----- Original Message ----- 
From: "Merrill, Jason" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Thursday, December 08, 2005 1:03 PM
Subject: [Flashcoders] Calculating future date


Searched the archives, couldn't find an answer.  How can I calculate a
date which is X number of days in the future? - should of course take
into account leap years as well.

Date + 3023days = Date?

Thanks.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com





NOTICE:
This message is for the designated recipient only and may contain privileged 
or confidential information. If you have received it in error, please notify 
the sender immediately and delete the original. Any other use of this e-mail 
by you is prohibited.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to