<?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: Update to Date Formatter</title>
	<atom:link href="http://www.yapiodesign.com/blog/2005/11/15/update-to-date-formatter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yapiodesign.com/blog/2005/11/15/update-to-date-formatter/</link>
	<description>Development tidbits, struggles, revelations, and still some Flash</description>
	<lastBuildDate>Tue, 07 Feb 2012 21:04:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: John O</title>
		<link>http://www.yapiodesign.com/blog/2005/11/15/update-to-date-formatter/comment-page-1/#comment-235</link>
		<dc:creator>John O</dc:creator>
		<pubDate>Wed, 16 Nov 2005 00:24:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.yapiodesign.com/blog/2005/11/15/update-to-date-formatter/#comment-235</guid>
		<description>If you update your post, let me know and I&#039;ll modify my blog here to point to your post and your AS2 version.
</description>
		<content:encoded><![CDATA[<p>If you update your post, let me know and I&#8217;ll modify my blog here to point to your post and your AS2 version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darron</title>
		<link>http://www.yapiodesign.com/blog/2005/11/15/update-to-date-formatter/comment-page-1/#comment-234</link>
		<dc:creator>darron</dc:creator>
		<pubDate>Tue, 15 Nov 2005 23:34:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.yapiodesign.com/blog/2005/11/15/update-to-date-formatter/#comment-234</guid>
		<description>Nah, I don&#039;t have a download link to it on my website.  My DateUtil class is part of a class library that I tend to re-use a lot in the apps I build.  When people ask me for it I have no problem giving it to them though.

As you&#039;re aware, it&#039;s pretty trivial to &quot;port&quot; the AS1 code to AS2.  Essentially just make the method static and wrap it in a class and you&#039;re good to go.  I&#039;ll have to post a comment in my original entry to point people to the AS2 version, though I would prefer if it was in the com.darronschall.util namespace.</description>
		<content:encoded><![CDATA[<p>Nah, I don&#8217;t have a download link to it on my website.  My DateUtil class is part of a class library that I tend to re-use a lot in the apps I build.  When people ask me for it I have no problem giving it to them though.</p>
<p>As you&#8217;re aware, it&#8217;s pretty trivial to &#8220;port&#8221; the AS1 code to AS2.  Essentially just make the method static and wrap it in a class and you&#8217;re good to go.  I&#8217;ll have to post a comment in my original entry to point people to the AS2 version, though I would prefer if it was in the com.darronschall.util namespace.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John O</title>
		<link>http://www.yapiodesign.com/blog/2005/11/15/update-to-date-formatter/comment-page-1/#comment-233</link>
		<dc:creator>John O</dc:creator>
		<pubDate>Tue, 15 Nov 2005 23:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.yapiodesign.com/blog/2005/11/15/update-to-date-formatter/#comment-233</guid>
		<description>Agreed. I didn&#039;t think that one through.  If I was using something like the DateChooser component or other library as you mentioned which returns a Date Object, extending the Date Class would not be of much use. 

So the static Class makes more sense.  Thanks Darron.

Are you providing your AS2 version publically available?

</description>
		<content:encoded><![CDATA[<p>Agreed. I didn&#8217;t think that one through.  If I was using something like the DateChooser component or other library as you mentioned which returns a Date Object, extending the Date Class would not be of much use. </p>
<p>So the static Class makes more sense.  Thanks Darron.</p>
<p>Are you providing your AS2 version publically available?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darron</title>
		<link>http://www.yapiodesign.com/blog/2005/11/15/update-to-date-formatter/comment-page-1/#comment-232</link>
		<dc:creator>darron</dc:creator>
		<pubDate>Tue, 15 Nov 2005 22:29:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.yapiodesign.com/blog/2005/11/15/update-to-date-formatter/#comment-232</guid>
		<description>You shouldn&#039;t extend the Date class because you lose the ability to format regular Date instances.

Imagine if you are using a thrid party library that returns a date:

var dt:Date = Library.returnSomeCoolDate();

How would you format it now?  You&#039;d have to convert the date to a &quot;Date2&quot; instnace, which is extra work that isn&#039;t necessary.  Using a static utility method is really best practice here...

And by the way, you should&#039;ve just asked me for an AS2 version of my DateFormat code -- I&#039;ve been using it for over a year now:

DateUtil.format( date, formatString )  

:-)</description>
		<content:encoded><![CDATA[<p>You shouldn&#8217;t extend the Date class because you lose the ability to format regular Date instances.</p>
<p>Imagine if you are using a thrid party library that returns a date:</p>
<p>var dt:Date = Library.returnSomeCoolDate();</p>
<p>How would you format it now?  You&#8217;d have to convert the date to a &#8220;Date2&#8243; instnace, which is extra work that isn&#8217;t necessary.  Using a static utility method is really best practice here&#8230;</p>
<p>And by the way, you should&#8217;ve just asked me for an AS2 version of my DateFormat code &#8212; I&#8217;ve been using it for over a year now:</p>
<p>DateUtil.format( date, formatString )  </p>
<p> <img src='http://www.yapiodesign.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

