<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Customizing the current date in the Flex DateField control</title>
	<link>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Sun, 07 Sep 2008 04:21:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12706</link>
		<author>peterd</author>
		<pubDate>Thu, 15 May 2008 15:28:21 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12706</guid>
		<description>&lt;a href="http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12696" rel="nofollow"&gt;tkong&lt;/a&gt;,

Something like this?
&lt;pre class="code"&gt;
&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&#62;

    &#60;mx:Script&#62;
        &#60;![CDATA[
            private function init():void {
                var theFuture:Date = new Date();
                theFuture.month += 2;
                dateChooser.displayedYear = theFuture.fullYear;
                dateChooser.displayedMonth = theFuture.month;
            }
        ]]&#62;
    &#60;/mx:Script&#62;

    &#60;mx:ApplicationControlBar dock="true"&#62;
        &#60;mx:Button label="Current date"
                click="dateChooser.selectedDate = new Date();" /&#62;
    &#60;/mx:ApplicationControlBar&#62;

    &#60;mx:DateChooser id="dateChooser"
            initialize="init();" /&#62;

&#60;/mx:Application&#62;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12696" rel="nofollow">tkong</a>,</p>
<p>Something like this?</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function init():void {
                var theFuture:Date = new Date();
                theFuture.month += 2;
                dateChooser.displayedYear = theFuture.fullYear;
                dateChooser.displayedMonth = theFuture.month;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Button label="Current date"
                click="dateChooser.selectedDate = new Date();" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:DateChooser id="dateChooser"
            initialize="init();" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tkong</title>
		<link>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12696</link>
		<author>tkong</author>
		<pubDate>Thu, 15 May 2008 08:59:32 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12696</guid>
		<description>Hi Peter,

How about when the calendar is showing any month other than this month;
then when the showToday is checked the month will redraw the current month, with today highlighted, of course.

Thanks in advance.

tkong</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>How about when the calendar is showing any month other than this month;<br />
then when the showToday is checked the month will redraw the current month, with today highlighted, of course.</p>
<p>Thanks in advance.</p>
<p>tkong</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12351</link>
		<author>peterd</author>
		<pubDate>Tue, 29 Apr 2008 03:54:08 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12351</guid>
		<description>&lt;a href="http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12349" rel="nofollow"&gt;Avery&lt;/a&gt;

Yes.

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12349" rel="nofollow">Avery</a></p>
<p>Yes.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avery</title>
		<link>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12349</link>
		<author>Avery</author>
		<pubDate>Tue, 29 Apr 2008 02:46:31 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/12/19/customizing-the-current-date-in-the-flex-datefield-control/#comment-12349</guid>
		<description>Hello Peter.

&lt;pre class="code"&gt;
        DateField {
            todayColor: haloOrange;
            dateChooserStyleName: myCustomDateChooser;
        }

        .myCustomDateChooser {
            todayStyleName: myCustomTodayStyleName;
        }

        .myCustomTodayStyleName {
            color: black;
            fontStyle: italic;
            fontWeight: bold;
        }
&lt;/pre&gt;

Can you leave a demo here? Can I change whatever the color I want?</description>
		<content:encoded><![CDATA[<p>Hello Peter.</p>
<pre class="code">
        DateField {
            todayColor: haloOrange;
            dateChooserStyleName: myCustomDateChooser;
        }

        .myCustomDateChooser {
            todayStyleName: myCustomTodayStyleName;
        }

        .myCustomTodayStyleName {
            color: black;
            fontStyle: italic;
            fontWeight: bold;
        }
</pre>
<p>Can you leave a demo here? Can I change whatever the color I want?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
