Yeah, that works too... =]

!k

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Muzak
Sent: Thursday, February 07, 2008 4:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] What is the best way to add a day to a date?

or:

var ms:Number = 24*60*60*1000;
var d:String = "2008/12/20";
var newDate:Date = new Date(Date.parse(d)+ms);


----- Original Message ----- 
From: "Kevin Aebig" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Thursday, February 07, 2008 6:19 PM
Subject: RE: [flexcoders] What is the best way to add a day to a date?


> Create a date object with the string, than add the day to it like this:
> 
> 
> 
> newDate = new Date(a[0], a[1], a[2]);
> 
> newDate.seconds += 8640; // seconds in a day or (60*60*24)
> 
> 
> 
> !k 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links





Reply via email to