<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog &#124; Rubyyot &#187; date</title>
	<atom:link href="http://blog.rubyyot.com/tag/date/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rubyyot.com</link>
	<description>Programming, Pragmatism and Getting By in the World</description>
	<lastBuildDate>Wed, 24 Mar 2010 00:14:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Date.parse() is not your friend.</title>
		<link>http://blog.rubyyot.com/2010/02/date-parse-is-not-your-friend/</link>
		<comments>http://blog.rubyyot.com/2010/02/date-parse-is-not-your-friend/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 15:08:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[ruby 1.9]]></category>

		<guid isPermaLink="false">http://blog.rubyyot.com/?p=711</guid>
		<description><![CDATA[I&#8217;ve started looking at Ruby 1.9 with multiruby, and one of the first things that I found in testing is that Date.parse assumes European dates (dd/mm/yyyy format) in v1.9.  The solution is to use strptime() instead so you can specify a format.

Date.strptime&#40;&#34;12/31/2009&#34;, &#34;%m/%d/%Y&#34;&#41;

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started looking at Ruby 1.9 with multiruby, and one of the first things that I found in testing is that Date.parse assumes European dates (dd/mm/yyyy format) in v1.9.  The solution is to use strptime() instead so you can specify a format.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC00FF; font-weight:bold;">Date</span>.<span style="color:#9900CC;">strptime</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;12/31/2009&quot;</span>, <span style="color:#996600;">&quot;%m/%d/%Y&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.rubyyot.com/2010/02/date-parse-is-not-your-friend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
