<?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: Flex Date Utils &#8211; dayOfYear and weekOfYear</title>
	<atom:link href="http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/</link>
	<description>Flex, AIR, ColdFusion, and everything in between</description>
	<lastBuildDate>Thu, 15 Dec 2011 04:02:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: laokinsham</title>
		<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/comment-page-1/#comment-4229</link>
		<dc:creator>laokinsham</dc:creator>
		<pubDate>Fri, 04 Mar 2011 13:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=113#comment-4229</guid>
		<description>Thank u, i&#039;ll try to make a version in portuguese to help the comunity here.</description>
		<content:encoded><![CDATA[<p>Thank u, i&#8217;ll try to make a version in portuguese to help the comunity here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Converting dates in Flex &#171; rishi / software</title>
		<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/comment-page-1/#comment-951</link>
		<dc:creator>Converting dates in Flex &#171; rishi / software</dc:creator>
		<pubDate>Mon, 31 May 2010 06:08:02 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=113#comment-951</guid>
		<description>[...] Usage: http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Usage: http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/ [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JB</title>
		<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/comment-page-1/#comment-928</link>
		<dc:creator>JB</dc:creator>
		<pubDate>Wed, 14 Apr 2010 15:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=113#comment-928</guid>
		<description>&lt;a href=&quot;#comment-927&quot; rel=&quot;nofollow&quot;&gt;@Gareth&lt;/a&gt; 
Cool thanks Gareth! This is what I ended up doing:

public static function dayInYear2Date(year:int, dayInYear:int):Date
{ 
return DateUtils.dateAdd( DateUtils.DAY_OF_MONTH, dayInYear
, new Date(year-1, 11/*dec*/, 31));
}</description>
		<content:encoded><![CDATA[<p><a href="#comment-927" rel="nofollow">@Gareth</a><br />
Cool thanks Gareth! This is what I ended up doing:</p>
<p>public static function dayInYear2Date(year:int, dayInYear:int):Date<br />
{<br />
return DateUtils.dateAdd( DateUtils.DAY_OF_MONTH, dayInYear<br />
, new Date(year-1, 11/*dec*/, 31));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/comment-page-1/#comment-927</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Wed, 14 Apr 2010 01:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=113#comment-927</guid>
		<description>Glad you like it.  Very simple to do what you need using the dateAdd method :)

DateUtils.dateAdd( DateUtils.DAY_OF_MONTH, new Date( 2011, DateUtils.monthAsNumber( DateUtils.DECEMBER ), 31 ), 360 );

This should get you to the 360th day of 2012.</description>
		<content:encoded><![CDATA[<p>Glad you like it.  Very simple to do what you need using the dateAdd method <img src='http://flexoop.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>DateUtils.dateAdd( DateUtils.DAY_OF_MONTH, new Date( 2011, DateUtils.monthAsNumber( DateUtils.DECEMBER ), 31 ), 360 );</p>
<p>This should get you to the 360th day of 2012.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JB</title>
		<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/comment-page-1/#comment-926</link>
		<dc:creator>JB</dc:creator>
		<pubDate>Tue, 13 Apr 2010 20:29:21 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=113#comment-926</guid>
		<description>This is pretty cool. Do you have or know of anything that does the opposite?  e.g. takes year + day in year and returns a Date object?

toDate(2012,360) would return a Date with the 360th day in 2012</description>
		<content:encoded><![CDATA[<p>This is pretty cool. Do you have or know of anything that does the opposite?  e.g. takes year + day in year and returns a Date object?</p>
<p>toDate(2012,360) would return a Date with the 360th day in 2012</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tafkap</title>
		<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/comment-page-1/#comment-823</link>
		<dc:creator>tafkap</dc:creator>
		<pubDate>Mon, 28 Dec 2009 13:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=113#comment-823</guid>
		<description>It&#039;s work, you are fantastic, thanks.

Cheers</description>
		<content:encoded><![CDATA[<p>It&#8217;s work, you are fantastic, thanks.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/comment-page-1/#comment-822</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Mon, 28 Dec 2009 13:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=113#comment-822</guid>
		<description>Yup, that should work fine in Actionscript.  To do that with the library, you would just use dateAdd.

DateUtils.dateAdd( DateUtils.DAY_OF_MONTH, ( dayOfYearNumber - 1 ), new Date( 2008, DateUtils.monthAsNumber( DateUtils.JANUARY ), 1 ) );</description>
		<content:encoded><![CDATA[<p>Yup, that should work fine in Actionscript.  To do that with the library, you would just use dateAdd.</p>
<p>DateUtils.dateAdd( DateUtils.DAY_OF_MONTH, ( dayOfYearNumber &#8211; 1 ), new Date( 2008, DateUtils.monthAsNumber( DateUtils.JANUARY ), 1 ) );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tafkap</title>
		<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/comment-page-1/#comment-820</link>
		<dc:creator>tafkap</dc:creator>
		<pubDate>Mon, 28 Dec 2009 08:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=113#comment-820</guid>
		<description>An idea, with VB.NET you can write this :

Dim d As New DateTime(2008, 1, 1) &#039; 1er janvier
d = d.AddDays(numJour - 1)

And it&#039;s work, now it should translate into Action Script.</description>
		<content:encoded><![CDATA[<p>An idea, with VB.NET you can write this :</p>
<p>Dim d As New DateTime(2008, 1, 1) &#8216; 1er janvier<br />
d = d.AddDays(numJour &#8211; 1)</p>
<p>And it&#8217;s work, now it should translate into Action Script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tafkap</title>
		<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/comment-page-1/#comment-819</link>
		<dc:creator>tafkap</dc:creator>
		<pubDate>Mon, 28 Dec 2009 08:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=113#comment-819</guid>
		<description>Thanks Gareth,

do you have an idea to implement this functionality ? i really need of this method.

Cheers</description>
		<content:encoded><![CDATA[<p>Thanks Gareth,</p>
<p>do you have an idea to implement this functionality ? i really need of this method.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth</title>
		<link>http://flexoop.com/2008/12/flex-date-utils-dayofyear-and-weekofyear/comment-page-1/#comment-816</link>
		<dc:creator>Gareth</dc:creator>
		<pubDate>Fri, 25 Dec 2009 02:44:16 +0000</pubDate>
		<guid isPermaLink="false">http://flexoop.com/?p=113#comment-816</guid>
		<description>I don&#039;t think I&#039;ve got that method in the date utils yet, but I will definitely look into adding it.  Thanks for the idea.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think I&#8217;ve got that method in the date utils yet, but I will definitely look into adding it.  Thanks for the idea.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

