<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex Examples &#187; DateField</title>
	<atom:link href="http://blog.flexexamples.com/category/halo/datefield/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hiding the text field on an MX DateField control in Flex 3</title>
		<link>http://blog.flexexamples.com/2010/03/28/hiding-the-text-field-on-an-mx-datefield-control-in-flex-3/</link>
		<comments>http://blog.flexexamples.com/2010/03/28/hiding-the-text-field-on-an-mx-datefield-control-in-flex-3/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 06:13:09 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[getTextInput()]]></category>
		<category><![CDATA[includeInLayout]]></category>
		<category><![CDATA[mx_internal]]></category>
		<category><![CDATA[visible]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2656</guid>
		<description><![CDATA[<p>The following example shows how you can hide the text input field on the MX DateField control in Flex 3 by setting the Boolean visible and includeInLayout properties on the internal text field (using the getTextField() method in the mx_internal namespace).</p> <p></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2010/03/28/hiding-the-text-field-on-an-mx-datefield-control-in-flex-3/ --&#62; &#60;mx:Application name=&#34;MX_DateField_getTextInput_test&#34; xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;top&#34; backgroundColor=&#34;white&#34;&#62; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can hide the text input field on the MX DateField control in Flex 3 by setting the Boolean <code>visible</code> and <code>includeInLayout</code> properties on the internal text field (using the <code>getTextField()</code> method in the <code>mx_internal</code> namespace).</p>
<p><span id="more-2656"></span></p>
<p class="alert">Since this example uses the <strong>mx_internal</strong> namespace, you can't always depend on this behavior to work in future versions of the Flex SDK. Use at your own risk.</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: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/03/28/hiding-the-text-field-on-an-mx-datefield-control-in-flex-3/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;MX_DateField_getTextInput_test&quot;</span></span>
<span style="color: #000000;">                xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">                layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">                verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">                backgroundColor=<span style="color: #ff0000;">&quot;white&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.controls.TextInput;</span>
&nbsp;
<span style="color: #339933;">            protected function init():void {</span>
<span style="color: #339933;">                var tf:TextInput = df.mx_internal::getTextInput();</span>
<span style="color: #339933;">                tf.visible = false;</span>
<span style="color: #339933;">                tf.includeInLayout = false;</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> initialize=<span style="color: #ff0000;">&quot;init();&quot;</span> width=<span style="color: #ff0000;">&quot;23&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Label</span> text=<span style="color: #ff0000;">&quot;{df.selectedDate}&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>

<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Hiding the text field on an MX DateField control in Flex 3 on FlexExamples.com',url: 'http://blog.flexexamples.com/2010/03/28/hiding-the-text-field-on-an-mx-datefield-control-in-flex-3/',contentID: 'post-2656',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'getTextInput(),includeInLayout,mx_internal,visible',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2010/03/28/hiding-the-text-field-on-an-mx-datefield-control-in-flex-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Filtering an MX DataGrid control by date range using Flex</title>
		<link>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/</link>
		<comments>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 02:11:22 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[ArrayCollection]]></category>
		<category><![CDATA[DataGrid]]></category>
		<category><![CDATA[DateField]]></category>
		<category><![CDATA[filterFunction]]></category>
		<category><![CDATA[refresh()]]></category>
		<category><![CDATA[selectableRange]]></category>
		<category><![CDATA[selectedDate]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2366</guid>
		<description><![CDATA[<p>The following example shows how you can filter an MX DataGrid control in Flex using two MX DateField control&#8217;s and filtering the ArrayCollection data provider.</p> <p></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/ --&#62; &#60;mx:Application name=&#34;MX_DataGrid_filter_DateField_test&#34; xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;middle&#34; backgroundColor=&#34;white&#34; initialize=&#34;init();&#34;&#62; &#160; &#60;mx:Script&#62; &#60;![CDATA[ protected const MIN_DATE:Date = new Date(2010, 0, 1); protected const MAX_DATE:Date = new [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can filter an MX DataGrid control in Flex using two MX DateField control&#8217;s and filtering the ArrayCollection data provider.</p>
<p><span id="more-2366"></span></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: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;MX_DataGrid_filter_DateField_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span></span>
<span style="color: #000000;">        initialize=<span style="color: #ff0000;">&quot;init();&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;">            protected const MIN_DATE:Date = new Date(2010, 0, 1);</span>
<span style="color: #339933;">            protected const MAX_DATE:Date = new Date(2010, 11, 31);</span>
&nbsp;
<span style="color: #339933;">            protected function date_labelFunc(item:Object, col:DataGridColumn):String {</span>
<span style="color: #339933;">                var time:Number = Date.parse(item[col.dataField]);</span>
<span style="color: #339933;">                return new Date(time).toDateString();</span>
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            protected function arrColl_filterFunc(item:Object):Boolean {</span>
<span style="color: #339933;">                var cDate:Number = Date.parse(item.holidayDate);</span>
&nbsp;
<span style="color: #339933;">                if (!sDate || !eDate) {</span>
<span style="color: #339933;">                    return true;</span>
<span style="color: #339933;">                }</span>
&nbsp;
<span style="color: #339933;">                if (sDate.selectedDate &amp;&amp; eDate.selectedDate) {</span>
<span style="color: #339933;">                    return (sDate.selectedDate.time &lt;= cDate) &amp;&amp; (eDate.selectedDate.time &gt;= cDate);</span>
<span style="color: #339933;">                } else if (sDate.selectedDate) {</span>
<span style="color: #339933;">                    return sDate.selectedDate.time &lt;= cDate;</span>
<span style="color: #339933;">                } else if (eDate.selectedDate) {</span>
<span style="color: #339933;">                    return eDate.selectedDate.time &gt;= cDate;</span>
<span style="color: #339933;">                } else {</span>
<span style="color: #339933;">                    return true;</span>
<span style="color: #339933;">                }</span>
<span style="color: #339933;">            }</span>
&nbsp;
<span style="color: #339933;">            protected function init():void {</span>
<span style="color: #339933;">                sDate.selectedDate = MIN_DATE;</span>
<span style="color: #339933;">                sDate.selectableRange = {rangeStart:MIN_DATE, rangeEnd:MAX_DATE};</span>
&nbsp;
<span style="color: #339933;">                eDate.selectedDate = MAX_DATE;</span>
<span style="color: #339933;">                eDate.selectableRange = sDate.selectableRange;</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:ArrayCollection</span> id=<span style="color: #ff0000;">&quot;arrColl&quot;</span> filterFunction=<span style="color: #ff0000;">&quot;arrColl_filterFunc&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:source</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Array</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;New Years&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/1/1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Martin Luther King, Jr. Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/1/18&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Groundhog Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/2/2&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Chinese New Year&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/2/14&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Valentine's Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/2/14&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;President's Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/2/15&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Ash Wednesday&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/2/17&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Daylight Saving Time starts&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/3/14&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;St. Patrick's Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/3/17&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;First Day of Spring&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/3/20&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;April Fool's Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/4/1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Easter&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/4/4&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Administrative Professional's Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/4/21&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Earth Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/4/22&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Cinco De Mayo&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/5/5&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Mothers Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/5/9&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Armed Forces Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/5/15&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Memorial Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/5/31&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Flag Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/6/14&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Father's Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/6/20&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Summer Begins&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/6/21&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Independence Day/July 4th&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/7/4&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Labor Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/9/6&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Grandparents Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/9/12&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;First Day of Autumn&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/9/23&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Columbus Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/10/11&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;United Nations Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/10/24&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Halloween&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/10/31&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;All Saints' Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/11/1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Daylight Saving Time Ends&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/11/7&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Veteran's Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/11/11&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Thanksgiving&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/11/25&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Wright Brothers Day&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/12/17&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;First Day Winter&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/12/21&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;Christmas&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/12/25&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Object</span> holidayName=<span style="color: #ff0000;">&quot;New Years Eve&quot;</span> holidayDate=<span style="color: #ff0000;">&quot;2010/12/31&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Array</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:source</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ArrayCollection</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:ApplicationControlBar</span> dock=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Form</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:FormItem</span> label=<span style="color: #ff0000;">&quot;Start date:&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:DateField</span> id=<span style="color: #ff0000;">&quot;sDate&quot;</span> change=<span style="color: #ff0000;">&quot;arrColl.refresh();&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:FormItem</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:FormItem</span> label=<span style="color: #ff0000;">&quot;End date:&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:DateField</span> id=<span style="color: #ff0000;">&quot;eDate&quot;</span> change=<span style="color: #ff0000;">&quot;arrColl.refresh();&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:FormItem</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Form</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:ApplicationControlBar</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:DataGrid</span> id=<span style="color: #ff0000;">&quot;dGrid&quot;</span> dataProvider=<span style="color: #ff0000;">&quot;{arrColl}&quot;</span> width=<span style="color: #ff0000;">&quot;400&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:columns</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:DataGridColumn</span> dataField=<span style="color: #ff0000;">&quot;holidayName&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:DataGridColumn</span> dataField=<span style="color: #ff0000;">&quot;holidayDate&quot;</span> labelFunction=<span style="color: #ff0000;">&quot;date_labelFunc&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:columns</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:DataGrid</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>

<div span="googleAdsLeaderboard">
<script type="text/javascript"><!--
google_ad_client = "pub-3325829455487492";
/* 728x90, created 7/15/09 */
google_ad_slot = "6403511741";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br />
</div>
<p class="information"><a href="http://dl.dropbox.com/u/4509565/FlexExamples_com/MX_DataGrid_filter_DateField_test/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://dl.dropbox.com/u/4509565/FlexExamples_com/MX_DataGrid_filter_DateField_test/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Filtering an MX DataGrid control by date range using Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/',contentID: 'post-2366',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'filterFunction,refresh(),selectableRange,selectedDate,time',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2010/02/01/filtering-an-mx-datagrid-control-by-date-range-using-flex/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Setting a custom format string on a DateField control in Flex</title>
		<link>http://blog.flexexamples.com/2008/07/23/setting-a-custom-format-string-on-a-datefield-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/07/23/setting-a-custom-format-string-on-a-datefield-control-in-flex/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 06:13:17 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[formatString]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/07/23/setting-a-custom-format-string-on-a-datefield-control-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can set a custom format string on a Flex DateField control by setting the formatString property using MXML and ActionScript.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_formatString_test/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/07/23/setting-a-custom-format-string-on-a-datefield-control-in-flex/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top" backgroundColor="white"&#62; &#60;mx:ApplicationControlBar dock="true"&#62; &#60;mx:Form styleName="plain"&#62; &#60;mx:FormItem label="formatString:" direction="horizontal"&#62; &#60;mx:Button [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set a custom format string on a Flex DateField control by setting the <code>formatString</code> property using MXML and ActionScript.</p>
<p>Full code after the jump.</p>
<p><span id="more-716"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_formatString_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/07/23/setting-a-custom-format-string-on-a-datefield-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="formatString:" direction="horizontal"&gt;
                &lt;mx:Button label="YYYY/MM/DD"
                        click="dateField.formatString='YYYY/MM/DD';" /&gt;
                &lt;mx:Button label="MM/DD/YYYY"
                        click="dateField.formatString='MM/DD/YYYY';" /&gt;
                &lt;mx:Button label="DD/MM/YYYY"
                        click="dateField.formatString='DD/MM/YYYY';" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:DateField id="dateField"
            formatString="YYYY-MM-DD" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_formatString_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_formatString_test/bin/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting a custom format string on a DateField control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/07/23/setting-a-custom-format-string-on-a-datefield-control-in-flex/',contentID: 'post-716',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'formatString',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/07/23/setting-a-custom-format-string-on-a-datefield-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting the border color on a DateField control in Flex</title>
		<link>http://blog.flexexamples.com/2008/06/12/setting-the-border-color-on-a-datefield-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/06/12/setting-the-border-color-on-a-datefield-control-in-flex/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 06:56:37 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[borderColor]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/06/12/setting-the-border-color-on-a-datefield-control-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can set the border color on a Flex DateField control by setting the borderColor style using MXML, CSS, and ActionScript.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_borderColor_test/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/06/12/setting-the-border-color-on-a-datefield-control-in-flex/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top" backgroundColor="white"&#62; &#60;mx:ApplicationControlBar dock="true"&#62; &#60;mx:Form styleName="plain"&#62; &#60;mx:FormItem label="borderColor:"&#62; &#60;mx:ColorPicker id="colorPicker" [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the border color on a Flex DateField control by setting the <code>borderColor</code> style using MXML, CSS, and ActionScript.</p>
<p>Full code after the jump.</p>
<p><span id="more-669"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_borderColor_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/06/12/setting-the-border-color-on-a-datefield-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="borderColor:"&gt;
                &lt;mx:ColorPicker id="colorPicker" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:DateField id="dateField"
            borderColor="{colorPicker.selectedColor}" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_borderColor_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_borderColor_test/bin/main.html" width="100%" height="250"></iframe></p>
<p>You can also set the <code>borderColor</code> style in an external .CSS file or &lt;mx:Style /&gt; block, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_borderColor_test/bin/srcview/source/main2.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/06/12/setting-the-border-color-on-a-datefield-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        DateField {
            borderColor: haloOrange;
        }
    &lt;/mx:Style&gt;

    &lt;mx:DateField id="red" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Or, you can set the <code>borderColor</code> style using ActionScript, as seen in the following example:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_borderColor_test/bin/srcview/source/main3.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/06/12/setting-the-border-color-on-a-datefield-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.events.ColorPickerEvent;

            private function colorPicker_change(evt:ColorPickerEvent):void {
                dateField.setStyle("borderColor", evt.color);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="borderColor:"&gt;
                &lt;mx:ColorPicker id="colorPicker"
                        change="colorPicker_change(event);" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:DateField id="dateField" /&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the border color on a DateField control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/06/12/setting-the-border-color-on-a-datefield-control-in-flex/',contentID: 'post-669',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'borderColor',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/06/12/setting-the-border-color-on-a-datefield-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Determining when the DateField control is opened or closed in Flex</title>
		<link>http://blog.flexexamples.com/2008/04/30/determining-when-the-datefield-control-is-opened-or-closed-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/04/30/determining-when-the-datefield-control-is-opened-or-closed-in-flex/#comments</comments>
		<pubDate>Thu, 01 May 2008 06:57:03 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[close()]]></category>
		<category><![CDATA[DropdownEvent]]></category>
		<category><![CDATA[itemRenderer]]></category>
		<category><![CDATA[open()]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/30/determining-when-the-datefield-control-is-opened-or-closed-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can determine when the Flex DateField control&#8217;s is opened or closed by listening for the open or close events.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_open_test/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/04/30/determining-when-the-datefield-control-is-opened-or-closed-in-flex/ --&#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[ import mx.events.DropdownEvent; private function dateField_openClose(evt:DropdownEvent):void { arrColl.addItem(evt); [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can determine when the Flex DateField control&#8217;s is opened or closed by listening for the <code>open</code> or <code>close</code> events.</p>
<p>Full code after the jump.</p>
<p><span id="more-614"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_open_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/04/30/determining-when-the-datefield-control-is-opened-or-closed-in-flex/ --&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[
            import mx.events.DropdownEvent;

            private function dateField_openClose(evt:DropdownEvent):void {
                arrColl.addItem(evt);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ArrayCollection id="arrColl" /&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:DateField id="dateField"
                open="dateField_openClose(event);"
                close="dateField_openClose(event);" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:DataGrid id="dataGrid"
            dataProvider="{arrColl}"
            itemRenderer="mx.controls.Label"
            width="100%"
            height="100%" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_open_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_open_test/bin/main.html" width="100%" height="350"></iframe></p>
<p>And here is the &#8220;same&#8221; example, but in ActionScript instead of MXML:</p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_open_test_2/bin/srcview/source/comps/MyDateField.as.html">comps/MyDateField.as</a></p>
<pre class="code">
/** http://blog.flexexamples.com/2008/04/30/determining-when-the-datefield-control-is-opened-or-closed-in-flex/ */
package comps {
    import mx.collections.ArrayCollection;
    import mx.containers.VBox;
    import mx.controls.DataGrid;
    import mx.controls.DateField;
    import mx.controls.Label;
    import mx.core.Application;
    import mx.core.ClassFactory;
    import mx.events.DropdownEvent;

    public class MyDateField extends VBox {

        [Bindable]
        private var arrColl:ArrayCollection;

        private var dateField:DateField;
        private var dataGrid:DataGrid;

        public function MyDateField() {
            super();
            init();
        }

        private function init():void {
            arrColl = new ArrayCollection();

            dateField = new DateField();
            dateField.addEventListener(DropdownEvent.OPEN, dateField_openClose);
            dateField.addEventListener(DropdownEvent.CLOSE, dateField_openClose);

            dataGrid = new DataGrid();
            dataGrid.dataProvider = arrColl;
            dataGrid.itemRenderer = new ClassFactory(mx.controls.Label);
            dataGrid.percentWidth = 100;
            dataGrid.percentHeight = 100;

            Application.application.appControlBar.addChild(dateField);

            addChild(dataGrid)
        }

        private function dateField_openClose(evt:DropdownEvent):void {
            arrColl.addItem(evt);
        }
    }
}
</pre>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_open_test_2/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/04/30/determining-when-the-datefield-control-is-opened-or-closed-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:comps="comps.*"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:ApplicationControlBar id="appControlBar" dock="true" /&gt;

    &lt;comps:MyDateField width="100%" height="100%" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_open_test_2/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_open_test_2/bin/main.html" width="100%" height="350"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Determining when the DateField control is opened or closed in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/04/30/determining-when-the-datefield-control-is-opened-or-closed-in-flex/',contentID: 'post-614',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'close(),DropdownEvent,itemRenderer,open()',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/04/30/determining-when-the-datefield-control-is-opened-or-closed-in-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Aligning the selected date in a DateField control in Flex</title>
		<link>http://blog.flexexamples.com/2008/04/28/aligning-the-selected-date-in-a-datefield-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/04/28/aligning-the-selected-date-in-a-datefield-control-in-flex/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 06:07:51 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[textAlign]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/04/28/aligning-the-selected-date-in-a-datefield-control-in-flex/</guid>
		<description><![CDATA[<p>The following example shows you how you can align the selected date in the Flex DateField control&#8217;s text field by setting the textAlign style.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_textAlign_test/bin/srcview/source/main.mxml.html">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2008/04/28/aligning-the-selected-date-in-a-datefield-control-in-flex/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top" backgroundColor="white"&#62; &#60;mx:Script&#62; &#60;![CDATA[ import mx.events.ItemClickEvent; private function init():void { dateField.selectedDate = [...]]]></description>
			<content:encoded><![CDATA[<p><code></code>The following example shows you how you can align the selected date in the Flex DateField control&#8217;s text field by setting the <code>textAlign</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-611"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_textAlign_test/bin/srcview/source/main.mxml.html">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/04/28/aligning-the-selected-date-in-a-datefield-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.events.ItemClickEvent;

            private function init():void {
                dateField.selectedDate = new Date();
            }

            private function toggleButtonBar_itemClick(evt:ItemClickEvent):void {
                dateField.setStyle("textAlign", evt.item.label);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:ToggleButtonBar id="toggleButtonBar"
                selectedIndex="1"
                itemClick="toggleButtonBar_itemClick(event);"&gt;
            &lt;mx:dataProvider&gt;
                &lt;mx:Array&gt;
                    &lt;mx:Object label="left" /&gt;
                    &lt;mx:Object label="center" /&gt;
                    &lt;mx:Object label="right" /&gt;
                &lt;/mx:Array&gt;
            &lt;/mx:dataProvider&gt;
        &lt;/mx:ToggleButtonBar&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:DateField id="dateField"
            width="200"
            textAlign="center"
            initialize="init();" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_textAlign_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_textAlign_test/bin/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Aligning the selected date in a DateField control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/04/28/aligning-the-selected-date-in-a-datefield-control-in-flex/',contentID: 'post-611',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'textAlign',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/04/28/aligning-the-selected-date-in-a-datefield-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Changing the default calendar icon in a Flex DateField control</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/</link>
		<comments>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comments</comments>
		<pubDate>Sat, 29 Dec 2007 02:09:36 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[ClassReference()]]></category>
		<category><![CDATA[disabledSkin]]></category>
		<category><![CDATA[downSkin]]></category>
		<category><![CDATA[overSkin]]></category>
		<category><![CDATA[skin]]></category>
		<category><![CDATA[upSkin]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/</guid>
		<description><![CDATA[<p>The following example shows how you can change the default calendar icon that appears in a DateField control in Flex by setting the skin style.</p> <p></p> &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;!-- http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/ --&#62; &#60;mx:Application name=&#34;DateField_skin_test&#34; xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;vertical&#34; verticalAlign=&#34;top&#34; backgroundColor=&#34;white&#34;&#62; &#160; &#60;mx:Style&#62; DateField { skin: Embed(&#34;clock_add.png&#34;); /* null the skins defined in default.css */ upSkin: ClassReference(null); overSkin: [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can change the default calendar icon that appears in a DateField control in Flex by setting the <code>skin</code> style.</p>
<p><span id="more-385"></span></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: #808080; font-style: italic;">&lt;!-- http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/ --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> name=<span style="color: #ff0000;">&quot;DateField_skin_test&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        layout=<span style="color: #ff0000;">&quot;vertical&quot;</span></span>
<span style="color: #000000;">        verticalAlign=<span style="color: #ff0000;">&quot;top&quot;</span></span>
<span style="color: #000000;">        backgroundColor=<span style="color: #ff0000;">&quot;white&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
        DateField {
            skin: Embed(&quot;clock_add.png&quot;);
            /* null the skins defined in default.css */
            upSkin: ClassReference(null);
            overSkin: ClassReference(null);
            downSkin: ClassReference(null);
            disabledSkin: ClassReference(null);
        }
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Style</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:DateField</span> id=<span style="color: #ff0000;">&quot;dateField&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 class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_skin_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_skin_test/bin/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Changing the default calendar icon in a Flex DateField control on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/',contentID: 'post-385',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'ClassReference(),disabledSkin,downSkin,overSkin,skin,upSkin',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Removing the drop shadow from the DateField control in Flex</title>
		<link>http://blog.flexexamples.com/2007/12/23/removing-the-drop-shadow-from-the-datefield-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2007/12/23/removing-the-drop-shadow-from-the-datefield-control-in-flex/#comments</comments>
		<pubDate>Mon, 24 Dec 2007 07:59:06 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[dateChooserStyleName]]></category>
		<category><![CDATA[dropShadowEnabled]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/23/removing-the-drop-shadow-from-the-datefield-control-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can remove the default drop shadow from the nested DateChooser control in a Flex DateField control by setting the dropShadowEnabled style.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_dateChooserStyleName_dropShadowEnabled_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/12/23/removing-the-drop-shadow-from-the-datefield-control-in-flex/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top" backgroundColor="white"&#62; &#60;mx:Style&#62; .myDateChooser { dropShadowEnabled: false; } &#60;/mx:Style&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can remove the default drop shadow from the nested DateChooser control in a Flex DateField control by setting the <code>dropShadowEnabled</code> style.</p>
<p>Full code after the jump.</p>
<p><span id="more-386"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_dateChooserStyleName_dropShadowEnabled_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/12/23/removing-the-drop-shadow-from-the-datefield-control-in-flex/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        .myDateChooser {
            dropShadowEnabled: false;
        }
    &lt;/mx:Style&gt;

    &lt;mx:Form&gt;
        &lt;mx:FormItem label="With drop shadow:"&gt;
            &lt;mx:DateField /&gt;
        &lt;/mx:FormItem&gt;
        &lt;mx:FormItem label="Without drop shadow:"&gt;
            &lt;mx:DateField dateChooserStyleName="myDateChooser" /&gt;
        &lt;/mx:FormItem&gt;
    &lt;/mx:Form&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_dateChooserStyleName_dropShadowEnabled_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_dateChooserStyleName_dropShadowEnabled_test/bin/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Removing the drop shadow from the DateField control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/12/23/removing-the-drop-shadow-from-the-datefield-control-in-flex/',contentID: 'post-386',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'dateChooserStyleName,dropShadowEnabled',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/12/23/removing-the-drop-shadow-from-the-datefield-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Customizing the current date in a Flex DateField control</title>
		<link>http://blog.flexexamples.com/2007/12/22/customizing-the-current-date-in-a-flex-datefield-control/</link>
		<comments>http://blog.flexexamples.com/2007/12/22/customizing-the-current-date-in-a-flex-datefield-control/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 03:55:42 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateField]]></category>
		<category><![CDATA[todayIndicatorSkin]]></category>
		<category><![CDATA[todayStyleName]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/22/customizing-the-current-date-in-a-flex-datefield-control/</guid>
		<description><![CDATA[<p>The following example shows how you can customize the current date in a DateField control in Flex by setting a custom skin behind the current date using the todayIndicatorSkin style, as well as setting the todayStyleName style to set various text formats, such as text color and font weight.</p> <p>Full code after the jump.</p> <p></p> [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can customize the current date in a DateField control in Flex by setting a custom skin behind the current date using the <code>todayIndicatorSkin</code> style, as well as setting the <code>todayStyleName</code> style to set various text formats, such as text color and font weight.</p>
<p>Full code after the jump.</p>
<p><span id="more-387"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_dateChooserStyleName_todayIndicatorSkin_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/12/22/customizing-the-current-date-in-a-flex-datefield-control/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:Style&gt;
        DateField {
            dateChooserStyleName: myDateChooser;
        }

        .myDateChooser {
            todayIndicatorSkin: Embed("star.png");
            todayStyleName: myToday;
        }

        .myToday {
            color: black;
            fontWeight: bold;
        }
    &lt;/mx:Style&gt;

    &lt;mx:DateField id="dateField" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_dateChooserStyleName_todayIndicatorSkin_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_dateChooserStyleName_todayIndicatorSkin_test/bin/main.html" width="100%" height="300"></iframe></p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Customizing the current date in a Flex DateField control on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/12/22/customizing-the-current-date-in-a-flex-datefield-control/',contentID: 'post-387',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'todayIndicatorSkin,todayStyleName',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/12/22/customizing-the-current-date-in-a-flex-datefield-control/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting the first day of the week in a Flex DateField control&#8217;s calendar</title>
		<link>http://blog.flexexamples.com/2007/12/20/setting-the-first-day-of-the-week-in-a-flex-datefield-controls-calendar/</link>
		<comments>http://blog.flexexamples.com/2007/12/20/setting-the-first-day-of-the-week-in-a-flex-datefield-controls-calendar/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 07:11:31 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[DateBase]]></category>
		<category><![CDATA[DateField]]></category>
		<category><![CDATA[dayNamesShort]]></category>
		<category><![CDATA[firstDayOfWeek]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/20/setting-the-first-day-of-the-week-in-a-flex-datefield-controls-calendar/</guid>
		<description><![CDATA[<p>The following example shows how you can set the firstDayOfWeek property on the Flex DateField control to control whether the pop-up calendar starts on a Sunday (default) or a different day of the week.</p> <p>Full code after the jump.</p> <p></p> <p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_firstDayOfWeek_test/main.mxml">View MXML</a></p> &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;!-- http://blog.flexexamples.com/2007/12/20/setting-the-first-day-of-the-week-in-a-flex-datefield-controls-calendar/ --&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top" backgroundColor="white"&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can set the <code>firstDayOfWeek</code> property on the Flex DateField control to control whether the pop-up calendar starts on a Sunday (default) or a different day of the week.</p>
<p>Full code after the jump.</p>
<p><span id="more-389"></span></p>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_firstDayOfWeek_test/main.mxml">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2007/12/20/setting-the-first-day-of-the-week-in-a-flex-datefield-controls-calendar/ --&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="top"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.events.SliderEvent;
            import mx.formatters.DateBase;

            private function dateField_labelFunc(item:Date):String {
                return dateFormatter.format(item);
            }

            private function slider_change(evt:SliderEvent):void {
                dateField.firstDayOfWeek = evt.value;
                dateField.open();
            }

            private function slider_dataTipFunc(value:Number):String {
                return DateBase.dayNamesShort[value];
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:DateFormatter id="dateFormatter" formatString="MMM D, YYYY"/&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="firstDayOfWeek:"&gt;
                &lt;mx:HSlider id="slider"
                        minimum="0"
                        maximum="6"
                        liveDragging="true"
                        snapInterval="1"
                        tickInterval="1"
                        dataTipFormatFunction="slider_dataTipFunc"
                        change="slider_change(event);" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:DateField id="dateField"
            labelFunction="dateField_labelFunc"
            firstDayOfWeek="{Days.MONDAY}" /&gt;

&lt;/mx:Application&gt;
</pre>
<p class="download"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_firstDayOfWeek_test/Days.as">View Days.as</a></p>
<pre class="code">
package {
    public class Days {
        public static const SUNDAY:uint = 0;
        public static const MONDAY:uint = 1;
        public static const TUESDAY:uint = 2;
        public static const WEDNESDAY:uint = 3;
        public static const THURSDAY:uint = 4;
        public static const FRIDAY:uint = 5;
        public static const SATURDAY:uint = 6;

        public function Days() {
        }
    }
}
</pre>
<p class="information"><a href="http://blog.flexexamples.com/wp-content/uploads/DateField_firstDayOfWeek_test/bin/srcview/index.html">View source</a> is enabled in the following example.</p>
<p><iframe src="http://blog.flexexamples.com/wp-content/uploads/DateField_firstDayOfWeek_test/bin/main.html" width="100%" height="300"></iframe></p>
<p>For other examples of setting the <code>firstDayOfWeek</code> property (mainly for the DateChooser control), see <a href="http://blog.flexexamples.com/2007/08/23/setting-the-datechooser-controls-daynames-property-and-firstdayofweek-property/">&#8220;Setting the DateChooser control&#8217;s dayNames property and firstDayOfWeek property&#8221;</a> and <a href="http://blog.flexexamples.com/2007/07/30/changing-the-calendar-layout-in-the-datechooser-component-using-the-firstdayofweek-parameter/">&#8220;Changing the calendar layout in the DateChooser component using the firstDayOfWeek parameter&#8221;</a>.</p>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Setting the first day of the week in a Flex DateField control\&#039;s calendar on FlexExamples.com',url: 'http://blog.flexexamples.com/2007/12/20/setting-the-first-day-of-the-week-in-a-flex-datefield-controls-calendar/',contentID: 'post-389',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: 'dayNamesShort,firstDayOfWeek',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2007/12/20/setting-the-first-day-of-the-week-in-a-flex-datefield-controls-calendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

