<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setting the selected date in a DateChooser control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vicki</title>
		<link>http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/comment-page-1/#comment-6527</link>
		<dc:creator>Vicki</dc:creator>
		<pubDate>Fri, 04 Dec 2009 23:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/#comment-6527</guid>
		<description>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 &quot;id&quot;.  Is there a way to make this function work for all id&#039;s so I don&#039;t have to create a function for each date field?</description>
		<content:encoded><![CDATA[<p>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 &#8220;id&#8221;.  Is there a way to make this function work for all id&#8217;s so I don&#8217;t have to create a function for each date field?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vicki</title>
		<link>http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/comment-page-1/#comment-6526</link>
		<dc:creator>Vicki</dc:creator>
		<pubDate>Fri, 04 Dec 2009 22:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/#comment-6526</guid>
		<description>Peter,

I was finally able to try this code today and with a little tweaking, it worked fabulously.  Thank you!

Vicki</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>I was finally able to try this code today and with a little tweaking, it worked fabulously.  Thank you!</p>
<p>Vicki</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/comment-page-1/#comment-6511</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 03 Dec 2009 00:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/#comment-6511</guid>
		<description>@Vicki,

How about this:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;&gt;
    
    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.events.DropdownEvent;

            protected function df_openHandler(evt:DropdownEvent):void {
                var now:Date = new Date();
                df.displayedYear = now.fullYear;
                df.displayedMonth = now.month;
            }
        ]]&gt;
    &lt;/mx:Script&gt;
    
    &lt;mx:DateField id=&quot;df&quot; selectedDate=&quot;{new Date(1900)}&quot; open=&quot;df_openHandler(event);&quot; /&gt;
    
&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>@Vicki,</p>
<p>How about this:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.events.DropdownEvent;</span>
&nbsp;
<span style="color: #339933;">            protected function df_openHandler(evt:DropdownEvent):void {</span>
<span style="color: #339933;">                var now:Date = new Date();</span>
<span style="color: #339933;">                df.displayedYear = now.fullYear;</span>
<span style="color: #339933;">                df.displayedMonth = now.month;</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:DateField</span> id=<span style="color: #ff0000;">&quot;df&quot;</span> selectedDate=<span style="color: #ff0000;">&quot;{new Date(1900)}&quot;</span> open=<span style="color: #ff0000;">&quot;df_openHandler(event);&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vicki</title>
		<link>http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/comment-page-1/#comment-6510</link>
		<dc:creator>Vicki</dc:creator>
		<pubDate>Wed, 02 Dec 2009 23:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/02/setting-the-selected-date-in-a-datechooser-control-in-flex/#comment-6510</guid>
		<description>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 &#039;01/01/1900&#039; instead of blank so when a user wants to change the &#039;01/01/1900&#039; to something valid, he clicks the calendar and the year &#039;1900&#039; is displayed.  I would like the current month and year to be displayed instead of January 1900 .   Thanks for your help.</description>
		<content:encoded><![CDATA[<p>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 &#8217;01/01/1900&#8242; instead of blank so when a user wants to change the &#8217;01/01/1900&#8242; to something valid, he clicks the calendar and the year &#8217;1900&#8242; is displayed.  I would like the current month and year to be displayed instead of January 1900 .   Thanks for your help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

