<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Setting a minimum and maximum allowable year in the DateChooser control in Flex</title>
	<link>http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Mon, 13 Oct 2008 09:04:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<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-14985</link>
		<author>peterd</author>
		<pubDate>Wed, 27 Aug 2008 21:38:23 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/#comment-14985</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="code"&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-14984</link>
		<author>Jim Jones</author>
		<pubDate>Wed, 27 Aug 2008 20:13:13 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/05/04/setting-a-minimum-and-maximum-allowable-year-in-the-datechooser-control-in-flex/#comment-14984</guid>
		<description>Your statement, "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" 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>
