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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to