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] 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

<*> 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/
 



Reply via email to