The following example shows how you can set the selected date for a Flex DateChooser control by setting the selectedDate property to a Date object.
Full code after the jump.
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
verticalAlign="middle"
backgroundColor="white">
<mx:DateChooser id="dateChooser1"
selectedDate="{new Date('2008/04/19')}"
showToday="false" />
<mx:DateChooser id="dateChooser2"
initialize="dateChooser2.selectedDate = new Date('2008/04/19');"
showToday="false" />
</mx:Application>
View source is enabled in the following example.

{ 4 comments… read them below or add one }
When using the DateField, how can I get the popup calendar to display the current date upon opening the calendar regardless of what date is in the edit field? We use a default date of ‘01/01/1900′ instead of blank so when a user wants to change the ‘01/01/1900′ to something valid, he clicks the calendar and the year ‘1900′ is displayed. I would like the current month and year to be displayed instead of January 1900 . Thanks for your help.
@Vicki,
How about this:
Peter
Peter,
I was finally able to try this code today and with a little tweaking, it worked fabulously. Thank you!
Vicki
Actually, I spoke a little too soon. Yes it works for one field but I have multiple date fields that this needs to work for and each have their own “id”. Is there a way to make this function work for all id’s so I don’t have to create a function for each date field?