Many thanks Dirk.
var d:Date = new Date();
d.setDate(d.getDate()-1);
myDC.selectedDate = d;
Hi,
I suppose you want to display the previous day?
Try:
var d:Date = new Date();
myDC.selectedDate =
d.setDate(d.getDate()-1);
Dirk.
-----Original Message-----
From: [email protected]
[mailto:[email protected]]On
Behalf Of Dzafer
Sent: Thursday, April 21, 2005 10:30 AM
To: [email protected]
Subject: [flexcoders] DateChooser - date operation
Hi there,
How can I write something like this:
function dateChooser_init()
{
myDC.selectedDate = new Date () - 1;
}
<mx:DateChooser id="myDC"
initialize="dateChooser_init();" />
Best regard's
Dzafer
Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.
Yahoo! Groups Links
|