<?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: Changing the default calendar icon in a Flex DateField control</title>
	<atom:link href="http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/</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: arun</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/comment-page-1/#comment-6690</link>
		<dc:creator>arun</dc:creator>
		<pubDate>Mon, 28 Dec 2009 08:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-6690</guid>
		<description>Can anyone help me   ..I need to change the disabledSkin or Image with my own image..Is it possible??..</description>
		<content:encoded><![CDATA[<p>Can anyone help me   ..I need to change the disabledSkin or Image with my own image..Is it possible??..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arun</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/comment-page-1/#comment-6689</link>
		<dc:creator>arun</dc:creator>
		<pubDate>Mon, 28 Dec 2009 08:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-6689</guid>
		<description>hi, 
I need to use the disabledSkin property in &amp;ltDateField&amp;gt mxml tag as  &amp;ltDateField disabledSkin=&quot; Here i need to give my png image file name which has to be replaced in place of  disabledDate  &quot; &amp;gt</description>
		<content:encoded><![CDATA[<p>hi,<br />
I need to use the disabledSkin property in &amp;ltDateField&amp;gt mxml tag as  &amp;ltDateField disabledSkin=&#8221; Here i need to give my png image file name which has to be replaced in place of  disabledDate  &#8221; &amp;gt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Fisherr</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/comment-page-1/#comment-6571</link>
		<dc:creator>Alex Fisherr</dc:creator>
		<pubDate>Thu, 10 Dec 2009 09:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-6571</guid>
		<description>Hi Peter,
                       Please ignore my last post as I  got the solution. DateField CSS style header is not compatible in AIR. I set the style name as .dateField and gave this in the styleName property of dateField as below.

&lt; mx:DateField  styleName=&quot;dateField&quot;/&gt;
Things working pretty fine now.</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
                       Please ignore my last post as I  got the solution. DateField CSS style header is not compatible in AIR. I set the style name as .dateField and gave this in the styleName property of dateField as below.</p>
<p>&lt; mx:DateField  styleName=&#8221;dateField&#8221;/&gt;<br />
Things working pretty fine now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Fisherr</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/comment-page-1/#comment-6570</link>
		<dc:creator>Alex Fisherr</dc:creator>
		<pubDate>Thu, 10 Dec 2009 08:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-6570</guid>
		<description>Hi Peter,
                      I have been trying out your examples and they are always helpful. This time I am facing a problem. I am using a DateField Control in an AIR application. This code doesn&#039;t work in AIR. I tried for flex and its working fine there. How to adjust the code to change the calendar icon in Adobe AIR ?
I searched your AIR examples but couldn&#039;t find any help there .

Please reply !</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
                      I have been trying out your examples and they are always helpful. This time I am facing a problem. I am using a DateField Control in an AIR application. This code doesn&#8217;t work in AIR. I tried for flex and its working fine there. How to adjust the code to change the calendar icon in Adobe AIR ?<br />
I searched your AIR examples but couldn&#8217;t find any help there .</p>
<p>Please reply !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/comment-page-1/#comment-2171</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 26 May 2009 15:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-2171</guid>
		<description>vasu gulati,

You could do something like the following:

&lt;pre class=&quot;code&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;
        layout=&quot;vertical&quot;
        verticalAlign=&quot;middle&quot;
        backgroundColor=&quot;white&quot;&gt;

    &lt;mx:CheckBox id=&quot;checkBox&quot;
            label=&quot;enabled&quot;
            selected=&quot;true&quot; /&gt;

    &lt;mx:DateField id=&quot;df&quot;
                enabled=&quot;{checkBox.selected}&quot;
                disabledSkin=&quot;{null}&quot; /&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>vasu gulati,</p>
<p>You could do something like the following:</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:CheckBox id="checkBox"
            label="enabled"
            selected="true" /&gt;

    &lt;mx:DateField id="df"
                enabled="{checkBox.selected}"
                disabledSkin="{null}" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vasu gulati</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/comment-page-1/#comment-2170</link>
		<dc:creator>vasu gulati</dc:creator>
		<pubDate>Mon, 25 May 2009 06:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-2170</guid>
		<description>hi can you let me know how can i make claender icon invisible when my datefield control is disabled?</description>
		<content:encoded><![CDATA[<p>hi can you let me know how can i make claender icon invisible when my datefield control is disabled?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brixel</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/comment-page-1/#comment-2165</link>
		<dc:creator>Brixel</dc:creator>
		<pubDate>Fri, 25 Apr 2008 19:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-2165</guid>
		<description>Thanks Peter,

That is what I ended up using was the labelFunction, but I still think that the DateField should be able to handle the &quot;M/D/YYYY&quot; in the formatString, so thanks for filing the bug.

Brixel</description>
		<content:encoded><![CDATA[<p>Thanks Peter,</p>
<p>That is what I ended up using was the labelFunction, but I still think that the DateField should be able to handle the &#8220;M/D/YYYY&#8221; in the formatString, so thanks for filing the bug.</p>
<p>Brixel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/comment-page-1/#comment-2167</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Fri, 25 Apr 2008 15:25:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-2167</guid>
		<description>&lt;a href=&quot;http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-12284&quot; rel=&quot;nofollow&quot;&gt;Brixel&lt;/a&gt;,

I filed a bug in the public Flex bug base, &lt;a href=&quot;http://bugs.adobe.com/jira/browse/SDK-15386&quot; rel=&quot;nofollow&quot;&gt;&lt;u&gt;http://bugs.adobe.com/jira/browse/SDK-15386&lt;/u&gt;&lt;/a&gt;. Feel free to subscribe to bug updates or add any comments.

I&#039;m not actually sure it is a &quot;bug&quot;. According to the Flex 3 docs, the &lt;a href=&quot;http://livedocs.adobe.com/flex/3/langref/mx/controls/DateField.html#formatString&quot; rel=&quot;nofollow&quot;&gt;&lt;u&gt;DateField formatString property&lt;/a&gt; can contain any combination of &quot;MM&quot;, &quot;DD&quot;, &quot;YY&quot;, &quot;YYYY&quot;, delimiter, and punctuation characters.

UPDATE: Actually, another solution may be to use a custom &lt;code&gt;labelFunction&lt;/code&gt; on the DateField, see &lt;a href=&quot;http://blog.flexexamples.com/2007/12/12/setting-a-custom-label-function-on-a-flex-datefield-control/&quot; rel=&quot;nofollow&quot;&gt;&lt;u&gt;&quot;Setting a custom label function on a Flex DateField control&quot;&lt;/u&gt;&lt;/a&gt;.

&lt;pre class=&quot;code&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; layout=&quot;vertical&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function dateField_labelFunc(item:Date):String {
                return dateFormatter.format(item);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:DateFormatter id=&quot;dateFormatter&quot; formatString=&quot;M/D/YYYY&quot; /&gt;

    &lt;mx:DateField id=&quot;dateField&quot;
            initialize=&quot;dateField.selectedDate = new Date(2008,3,1);&quot;
            labelFunction=&quot;dateField_labelFunc&quot;  /&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Thanks,
Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-12284" rel="nofollow">Brixel</a>,</p>
<p>I filed a bug in the public Flex bug base, <a href="http://bugs.adobe.com/jira/browse/SDK-15386" rel="nofollow"><u><a href="http://bugs.adobe.com/jira/browse/SDK-15386" rel="nofollow">http://bugs.adobe.com/jira/browse/SDK-15386</a></u></a>. Feel free to subscribe to bug updates or add any comments.</p>
<p>I&#8217;m not actually sure it is a &#8220;bug&#8221;. According to the Flex 3 docs, the <a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/DateField.html#formatString" rel="nofollow"><u>DateField formatString property</u></a> can contain any combination of &#8220;MM&#8221;, &#8220;DD&#8221;, &#8220;YY&#8221;, &#8220;YYYY&#8221;, delimiter, and punctuation characters.</p>
<p>UPDATE: Actually, another solution may be to use a custom <code>labelFunction</code> on the DateField, see <a href="http://blog.flexexamples.com/2007/12/12/setting-a-custom-label-function-on-a-flex-datefield-control/" rel="nofollow"><u>&#8220;Setting a custom label function on a Flex DateField control&#8221;</u></a>.</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"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function dateField_labelFunc(item:Date):String {
                return dateFormatter.format(item);
            }
        ]]&gt;
    &lt;/mx:Script&gt;

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

    &lt;mx:DateField id="dateField"
            initialize="dateField.selectedDate = new Date(2008,3,1);"
            labelFunction="dateField_labelFunc"  /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Thanks,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brixel</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/comment-page-1/#comment-2166</link>
		<dc:creator>Brixel</dc:creator>
		<pubDate>Fri, 25 Apr 2008 11:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-2166</guid>
		<description>Peter,

After work I tried to recreate it locally to submit the example, but was unable to reproduce. So I became suspicous of working over the VPN and waited until this morning to try it again locally. It worked fine this morning, so it must have been some sort of display issue ( which I&#039;ve noticed both locally and remote a few times with Flex ).

That said, off topic, I did run across something with the formatString property of the DateField. I noticed it doesn&#039;t support the common short date format &quot;M/D/YYYY&quot;. It formats the date as &quot;MM/DD/YYYY&quot; and removes the &quot;/&quot; slash separators. So:

myDateField.formatString = &quot;M/D/YYYY&quot;;
myDateField.selectedDate = new Date();

Would display as: 04252008
Instead of: 4/25/2008

This I can reproduce at will. Is this a known issue already or should I submit? I did some poking and was unable to find it as a known issue.</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>After work I tried to recreate it locally to submit the example, but was unable to reproduce. So I became suspicous of working over the VPN and waited until this morning to try it again locally. It worked fine this morning, so it must have been some sort of display issue ( which I&#8217;ve noticed both locally and remote a few times with Flex ).</p>
<p>That said, off topic, I did run across something with the formatString property of the DateField. I noticed it doesn&#8217;t support the common short date format &#8220;M/D/YYYY&#8221;. It formats the date as &#8220;MM/DD/YYYY&#8221; and removes the &#8220;/&#8221; slash separators. So:</p>
<p>myDateField.formatString = &#8220;M/D/YYYY&#8221;;<br />
myDateField.selectedDate = new Date();</p>
<p>Would display as: 04252008<br />
Instead of: 4/25/2008</p>
<p>This I can reproduce at will. Is this a known issue already or should I submit? I did some poking and was unable to find it as a known issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/comment-page-1/#comment-2169</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Thu, 24 Apr 2008 16:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-2169</guid>
		<description>&lt;a href=&quot;http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-12258&quot; rel=&quot;nofollow&quot;&gt;Brixel&lt;/a&gt;,

Would you mind filing a bug at http://bugs.adobe.com/flex/ (file it in the Flex SDK project and the &quot;mx:DateField&quot; component). Also, if you could attach a small, reproducible test case to the bug, that would help out a lot.

Finally, if you post the bug number here, maybe a few of us here can vote and subscribe to the bug. :)

Thanks,
Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2007/12/28/changing-the-default-calendar-icon-in-a-flex-datefield-control/#comment-12258" rel="nofollow">Brixel</a>,</p>
<p>Would you mind filing a bug at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a> (file it in the Flex SDK project and the &#8220;mx:DateField&#8221; component). Also, if you could attach a small, reproducible test case to the bug, that would help out a lot.</p>
<p>Finally, if you post the bug number here, maybe a few of us here can vote and subscribe to the bug. :)</p>
<p>Thanks,<br />
Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

