On 3/27/07, natalia Vikhtinskaya <[EMAIL PROTECTED]> wrote:
I am looking for date object, but not sure it is possible
cur_day = new Date();
trace(cur_day)//Tue Mar 27 13:16:34 GMT+0400 2007
//trace(cur_day.getDate());
var1=cur_day.getDate()-1;//27
trace(var1);//26
so it is not date object
oops, didn't read properly:
function getYesterday ()
{
var t:Date = new Date ();
var daysBack:Number = 1;
var today:Date = new Date (t.getFullYear (), t.getMonth (), t.getDate
() - daysBack);
return (today);
}
should doit
micha
_______________________________________________
[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