function getYesterday():Date
{
var today:Date = new Date();
var yesterday:Date = today;
yesterday.setHours(today.getHours() - 24);
return yesterday;
}
trace(new Date());
trace(getYesterday());
----- Original Message -----
From: "Dave" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, June 01, 2005 1:57 PM
Subject: [flexcoders] Determining a Date
Any thoughts on an easy way to determine another date in time based on
today's date? I want to query a web service using yesterday's date and
I'm looking for a way to define it without all the logic overhead.
Thanks much,
Dave Harland
Yahoo! Groups Links
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> 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/