On 9/4/07, Paul Steven <[EMAIL PROTECTED]> wrote:
> I need to calculate how many days there are until a specified date in the
> future.
>
> Is there any built in functionality to do this, or if not, can anyone point
> me in the right direction. I would imagine it is difficult to do manually as
> it would need to take account of leap years etc.

trace( "You have to wake up only " + Math.floor( ((new Date( 2007, 12,
25 )).getTime() - (new Date()).getTime()) / (24 * 3600 * 1000) ) + "
times until it's Christmas!" );

HTH,
Mark
_______________________________________________
[email protected]
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