I think the bug lies in the fact that the DateChooser is expecting a perfect date without any hours, seconds.
I tried the following it works.
public var temp:Date = new Date();
[Bindable]
public var now:Date = new Date(temp.fullYear, temp.month, temp.date);
[Bindable]
public var now:Date = new Date(temp.fullYear, temp.month, temp.date);
On 3/16/06, pasflex <[EMAIL PROTECTED]> wrote:
If the selectedDate of a DateChooser is set to a date that is created
using new Date() with no arguments (or any similar constructor to get
the current date/time), the selectedDate is not highlighted on the
DateChooser when showToday is false.
Interestingly, it works if the date created using new Date(2006,2,15),
but I would just like to highlight today's date whatever that is.
Here's an example:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml"
xmlns="*">
<mx:DateChooser showToday="false" selectedDate="{now}"/>
<mx:Script>
[Bindable]
public var now:Date = new Date();
</mx:Script>
</mx:Application>
--
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/
<*> 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/
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.