<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setting a minimum and maximum allowable year in the DateChooser control in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mei</title>
		<link>http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/comment-page-1/#comment-9163</link>
		<dc:creator>mei</dc:creator>
		<pubDate>Tue, 26 Apr 2011 04:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/#comment-9163</guid>
		<description>I&#039;m also interested in whether it&#039;s possible to restrict the month field? would you be able to point out how to do this?</description>
		<content:encoded><![CDATA[<p>I&#8217;m also interested in whether it&#8217;s possible to restrict the month field? would you be able to point out how to do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Austin Durant</title>
		<link>http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/comment-page-1/#comment-6038</link>
		<dc:creator>Austin Durant</dc:creator>
		<pubDate>Fri, 16 Oct 2009 23:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/#comment-6038</guid>
		<description>Thanks Peter for the quick&#039;n&#039; dirty workaround to the &quot;today&quot; problem of disabledRanges. Code works like a charm!

AD</description>
		<content:encoded><![CDATA[<p>Thanks Peter for the quick&#8217;n&#8217; dirty workaround to the &#8220;today&#8221; problem of disabledRanges. Code works like a charm!</p>
<p>AD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radhika</title>
		<link>http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/comment-page-1/#comment-3182</link>
		<dc:creator>Radhika</dc:creator>
		<pubDate>Sat, 29 Nov 2008 09:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/#comment-3182</guid>
		<description>Is it possible to restrict even the month field?
Though the dates are restricted, we are able to navigate through these months??</description>
		<content:encoded><![CDATA[<p>Is it possible to restrict even the month field?<br />
Though the dates are restricted, we are able to navigate through these months??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/comment-page-1/#comment-3181</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Wed, 27 Aug 2008 21:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/#comment-3181</guid>
		<description>Jim Jones,

Instead of using &lt;code&gt;new Date()&lt;/code&gt;, which returns the current date/time, try something like the following:
&lt;pre class=&quot;code&quot;&gt;
var today:Date = new Date();
var yesterday:Date = new Date(today.fullYear, today.month, today.date-1);
dateChooser.disabledRanges = [{rangeEnd:yesterday}];
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Jim Jones,</p>
<p>Instead of using <code>new Date()</code>, which returns the current date/time, try something like the following:</p>
<pre class="code">
var today:Date = new Date();
var yesterday:Date = new Date(today.fullYear, today.month, today.date-1);
dateChooser.disabledRanges = [{rangeEnd:yesterday}];
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Jones</title>
		<link>http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/comment-page-1/#comment-3180</link>
		<dc:creator>Jim Jones</dc:creator>
		<pubDate>Wed, 27 Aug 2008 20:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/#comment-3180</guid>
		<description>Your statement, &quot;Also, a disabled range is set up using the disabledRanges property which specifies a rangeEnd value of the current date, preventing users from selecting any days PRIOR to today&quot; is incorrect. Instead, users are prevented from selecting any days PRIOR to today PLUS TODAY.  How would you make the exclusion begin yesterday going backward (or tomorrow going forward)?

Thanks,

Jim</description>
		<content:encoded><![CDATA[<p>Your statement, &#8220;Also, a disabled range is set up using the disabledRanges property which specifies a rangeEnd value of the current date, preventing users from selecting any days PRIOR to today&#8221; is incorrect. Instead, users are prevented from selecting any days PRIOR to today PLUS TODAY.  How would you make the exclusion begin yesterday going backward (or tomorrow going forward)?</p>
<p>Thanks,</p>
<p>Jim</p>
]]></content:encoded>
	</item>
</channel>
</rss>

