<?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: Convert an ISO 8601 Date String to / from a Native AS3 Date Object</title>
	<atom:link href="http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/</link>
	<description>This is the blog of Brooks Andrus. Here, at irregular intervals, you may find digital noise centered around the activities of an early 21st century technologist. I work for TechSmith Corporation, but this web space and the views found on it are entirely my own.</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:26:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Daniel Vergara</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-52570</link>
		<dc:creator>Daniel Vergara</dc:creator>
		<pubDate>Mon, 22 Aug 2011 18:31:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-52570</guid>
		<description>Thanks, I was looking for something like this, It worked great with the Facebook Graph API.</description>
		<content:encoded><![CDATA[<p>Thanks, I was looking for something like this, It worked great with the Facebook Graph API.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bri</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-52566</link>
		<dc:creator>bri</dc:creator>
		<pubDate>Mon, 15 Aug 2011 23:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-52566</guid>
		<description>You rock! Thanks so much!</description>
		<content:encoded><![CDATA[<p>You rock! Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: padma</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-52490</link>
		<dc:creator>padma</dc:creator>
		<pubDate>Tue, 15 Mar 2011 18:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-52490</guid>
		<description>how to convert from  time 15h00 to iso8601
and how to get T in between date and time     2011-02-26 04:00</description>
		<content:encoded><![CDATA[<p>how to convert from  time 15h00 to iso8601<br />
and how to get T in between date and time     2011-02-26 04:00</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: billy</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-52481</link>
		<dc:creator>billy</dc:creator>
		<pubDate>Fri, 25 Feb 2011 04:15:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-52481</guid>
		<description>There is already a class that handles this written by adobe:
http://code.google.com/p/as3corelib/source/browse/trunk/src/com/adobe/utils/DateUtil.as

Just copy the method called &quot;parseW3CDTF&quot; from there which can be used in flash (flex not required if you don&#039;t need all the other methods in that class)</description>
		<content:encoded><![CDATA[<p>There is already a class that handles this written by adobe:<br />
<a href="http://code.google.com/p/as3corelib/source/browse/trunk/src/com/adobe/utils/DateUtil.as" rel="nofollow">http://code.google.com/p/as3corelib/source/browse/trunk/src/com/adobe/utils/DateUtil.as</a></p>
<p>Just copy the method called &#8220;parseW3CDTF&#8221; from there which can be used in flash (flex not required if you don&#8217;t need all the other methods in that class)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marc</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-52479</link>
		<dc:creator>marc</dc:creator>
		<pubDate>Wed, 23 Feb 2011 21:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-52479</guid>
		<description>Thanks a ton, man!</description>
		<content:encoded><![CDATA[<p>Thanks a ton, man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-50672</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 31 Aug 2010 09:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-50672</guid>
		<description>Great, thanks!</description>
		<content:encoded><![CDATA[<p>Great, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian Zarzycki</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-50623</link>
		<dc:creator>Sebastian Zarzycki</dc:creator>
		<pubDate>Fri, 13 Aug 2010 11:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-50623</guid>
		<description>That saved me some time while parsing NewsML date - thanks a lot!</description>
		<content:encoded><![CDATA[<p>That saved me some time while parsing NewsML date &#8211; thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trent</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-50622</link>
		<dc:creator>Trent</dc:creator>
		<pubDate>Fri, 13 Aug 2010 01:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-50622</guid>
		<description>Excellent! This saved me a good bit of time - thanks!</description>
		<content:encoded><![CDATA[<p>Excellent! This saved me a good bit of time &#8211; thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-50580</link>
		<dc:creator>Ruben</dc:creator>
		<pubDate>Fri, 06 Aug 2010 15:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-50580</guid>
		<description>Hi,

works like a charm, thanks! I only set all functions to static, that way you save the line for creating an object that actually has no need to be created, I personally like that better.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>works like a charm, thanks! I only set all functions to static, that way you save the line for creating an object that actually has no need to be created, I personally like that better.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toby</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-50424</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Sun, 09 May 2010 16:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-50424</guid>
		<description>That last post was posted before it was complete damnit!

Obviously if you replace those delimiters with a space then the 0,8 and 9,6 boundries will no longer work, so you can just change the boundries.

However, better solution is to simply remove any white space from val as well:

val = val.replace(/-&#124;:&#124;T&#124;Z&#124;\s/g, &#039;&#039;);

Then everything else works as is.</description>
		<content:encoded><![CDATA[<p>That last post was posted before it was complete damnit!</p>
<p>Obviously if you replace those delimiters with a space then the 0,8 and 9,6 boundries will no longer work, so you can just change the boundries.</p>
<p>However, better solution is to simply remove any white space from val as well:</p>
<p>val = val.replace(/-|:|T|Z|\s/g, &#8221;);</p>
<p>Then everything else works as is.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Toby</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-50423</link>
		<dc:creator>Toby</dc:creator>
		<pubDate>Sun, 09 May 2010 16:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-50423</guid>
		<description>I was looking for something to convert mysql datetime fields which are formatted like so:

2009-11-24 11:11:10

Very similar to the extended pattern, so I modified the parseDateTime function to handle this as well:

#replace with a space (and trim if you want)
val = val.replace(/-&#124;:&#124;T&#124;Z/g, &quot; &quot;);

#stays the same
var date:Date = parseBasicDate(val.substr(0, 8));

#start at 9, not 8
date = parseBasicTime(val.substr(9, 6), date);

Thanks for the util.</description>
		<content:encoded><![CDATA[<p>I was looking for something to convert mysql datetime fields which are formatted like so:</p>
<p>2009-11-24 11:11:10</p>
<p>Very similar to the extended pattern, so I modified the parseDateTime function to handle this as well:</p>
<p>#replace with a space (and trim if you want)<br />
val = val.replace(/-|:|T|Z/g, &#8221; &#8220;);</p>
<p>#stays the same<br />
var date:Date = parseBasicDate(val.substr(0, 8));</p>
<p>#start at 9, not 8<br />
date = parseBasicTime(val.substr(9, 6), date);</p>
<p>Thanks for the util.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-50416</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 04 May 2010 12:31:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-50416</guid>
		<description>Great work and many thanks. You saved me loads of time aswell.</description>
		<content:encoded><![CDATA[<p>Great work and many thanks. You saved me loads of time aswell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-50304</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Fri, 26 Feb 2010 20:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-50304</guid>
		<description>Thanks - saved me some time as well.  As a note, I converted all functions/consts to static, so I can call the conversions w/o instantiating the class.</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; saved me some time as well.  As a note, I converted all functions/consts to static, so I can call the conversions w/o instantiating the class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-50025</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Wed, 18 Nov 2009 20:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-50025</guid>
		<description>Thanks for this class!  Works great.</description>
		<content:encoded><![CDATA[<p>Thanks for this class!  Works great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: waleed anbar</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-50010</link>
		<dc:creator>waleed anbar</dc:creator>
		<pubDate>Tue, 27 Oct 2009 00:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-50010</guid>
		<description>rock on, thanks!</description>
		<content:encoded><![CDATA[<p>rock on, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-49954</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 16 Aug 2009 10:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-49954</guid>
		<description>you&#039;ve saved me alot of time aswell... many thanks. I was working on a myspace app and couldn&#039;t get the date formatting nicely.</description>
		<content:encoded><![CDATA[<p>you&#8217;ve saved me alot of time aswell&#8230; many thanks. I was working on a myspace app and couldn&#8217;t get the date formatting nicely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-49914</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 17 Jun 2009 19:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-49914</guid>
		<description>Thanks a ton.. I owe you a beer too..
Your class just worked awesome , saved hours..</description>
		<content:encoded><![CDATA[<p>Thanks a ton.. I owe you a beer too..<br />
Your class just worked awesome , saved hours..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chadwick</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-49814</link>
		<dc:creator>Chadwick</dc:creator>
		<pubDate>Fri, 27 Mar 2009 22:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-49814</guid>
		<description>Looking for a solution to the same problem, yours was close but I also needed to parse time zone information. Turns out Flex has the DateUtil class that will do this for us!

http://stackoverflow.com/questions/691342/how-to-parse-an-iso-formatted-date-in-flex-as3</description>
		<content:encoded><![CDATA[<p>Looking for a solution to the same problem, yours was close but I also needed to parse time zone information. Turns out Flex has the DateUtil class that will do this for us!</p>
<p><a href="http://stackoverflow.com/questions/691342/how-to-parse-an-iso-formatted-date-in-flex-as3" rel="nofollow">http://stackoverflow.com/questions/691342/how-to-parse-an-iso-formatted-date-in-flex-as3</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-49763</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Sun, 08 Mar 2009 00:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-49763</guid>
		<description>Thanks, you saved me bunches of time.  I owe you a beer!</description>
		<content:encoded><![CDATA[<p>Thanks, you saved me bunches of time.  I owe you a beer!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ñ‚Ñ€ÐµÐ¹Ð´ÐµÑ€Ñ‹ Ñ„Ð¾Ñ€ÐµÐºÑ</title>
		<link>http://www.brooksandrus.com/blog/2009/02/23/convert-an-iso-8601-date-string-to-from-a-native-as3-date-object/comment-page-1/#comment-49749</link>
		<dc:creator>Ñ‚Ñ€ÐµÐ¹Ð´ÐµÑ€Ñ‹ Ñ„Ð¾Ñ€ÐµÐºÑ</dc:creator>
		<pubDate>Thu, 05 Mar 2009 05:24:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/?p=879#comment-49749</guid>
		<description>&lt;a href=&quot;http://investitovanie.ru&quot; rel=&quot;nofollow&quot;&gt;Ñ‚Ñ€ÐµÐ¹Ð´ÐµÑ€Ð¾Ð² Ñ„Ð¾Ñ€ÐµÐºÑ&lt;/a&gt;  &lt;a href=&quot;http://investitovanie.ru&quot; rel=&quot;nofollow&quot;&gt;Ñ‚Ñ€ÐµÐ¹Ð´ÐµÑ€Ð¾Ð² Ñ„Ð¾Ñ€ÐµÐºÑ&lt;/a&gt;  http://investitovanie.ru Ð·Ð°Ñ€Ð°Ð±Ð¾Ñ‚Ð°Ñ‚ÑŒ Ñ„Ð¾Ñ€ÐµÐºÑ</description>
		<content:encoded><![CDATA[<p><a href="http://investitovanie.ru" rel="nofollow">Ñ‚Ñ€ÐµÐ¹Ð´ÐµÑ€Ð¾Ð² Ñ„Ð¾Ñ€ÐµÐºÑ</a>  <a href="http://investitovanie.ru" rel="nofollow">Ñ‚Ñ€ÐµÐ¹Ð´ÐµÑ€Ð¾Ð² Ñ„Ð¾Ñ€ÐµÐºÑ</a>  <a href="http://investitovanie.ru" rel="nofollow">http://investitovanie.ru</a> Ð·Ð°Ñ€Ð°Ð±Ð¾Ñ‚Ð°Ñ‚ÑŒ Ñ„Ð¾Ñ€ÐµÐºÑ</p>
]]></content:encoded>
	</item>
</channel>
</rss>

