<?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 American date format to European and vice versa</title>
	<atom:link href="http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/</link>
	<description>CSS Toys for Professional Web Developers</description>
	<lastBuildDate>Mon, 15 Feb 2010 21:51:36 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ted</title>
		<link>http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/comment-page-1/#comment-30168</link>
		<dc:creator>Ted</dc:creator>
		<pubDate>Thu, 27 Nov 2008 08:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/#comment-30168</guid>
		<description>I originally posted this script as a reminder. I wanted to go back and look at it if needed in the future. At the time, I didn&#039;t know much about php or regex. So I&#039;m sorry if it doesn&#039;t work.

I would agree with Justin. If I were to do it today, i&#039;d probably convert to unix time stamp and then use the built in date formatting options in PHP. But that is because I dislike regex and the date formatting in PHP is much easier to understand.

However, the point of this snippet is to change from US dates to EU and vice versa. Using the built in php date formatting is only one way. You&#039;d have to localize it for each region.</description>
		<content:encoded><![CDATA[<p>I originally posted this script as a reminder. I wanted to go back and look at it if needed in the future. At the time, I didn&#8217;t know much about php or regex. So I&#8217;m sorry if it doesn&#8217;t work.</p>
<p>I would agree with Justin. If I were to do it today, i&#8217;d probably convert to unix time stamp and then use the built in date formatting options in PHP. But that is because I dislike regex and the date formatting in PHP is much easier to understand.</p>
<p>However, the point of this snippet is to change from US dates to EU and vice versa. Using the built in php date formatting is only one way. You&#8217;d have to localize it for each region.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Sainton</title>
		<link>http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/comment-page-1/#comment-30167</link>
		<dc:creator>Justin Sainton</dc:creator>
		<pubDate>Wed, 26 Nov 2008 21:36:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/#comment-30167</guid>
		<description>Much simpler and more consistent results by using echo date( &#039;m-d-Y&#039;, strtotime( $date) )</description>
		<content:encoded><![CDATA[<p>Much simpler and more consistent results by using echo date( &#8216;m-d-Y&#8217;, strtotime( $date) )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roger</title>
		<link>http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/comment-page-1/#comment-30147</link>
		<dc:creator>Roger</dc:creator>
		<pubDate>Thu, 20 Nov 2008 14:44:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/#comment-30147</guid>
		<description>Agreed, this example simply doesn&#039;t work unless there is something about the PHP environment that needs setting which has not been given here?</description>
		<content:encoded><![CDATA[<p>Agreed, this example simply doesn&#8217;t work unless there is something about the PHP environment that needs setting which has not been given here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nope</title>
		<link>http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/comment-page-1/#comment-30095</link>
		<dc:creator>Nope</dc:creator>
		<pubDate>Mon, 10 Nov 2008 12:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/#comment-30095</guid>
		<description>Saved the above into a .php file and ran it, does nothing except output the date as it was. 
useless.</description>
		<content:encoded><![CDATA[<p>Saved the above into a .php file and ran it, does nothing except output the date as it was.<br />
useless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Life of Matt Campos &#187; Blog Archive &#187; PHP - Convert American to European Date Format</title>
		<link>http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/comment-page-1/#comment-27607</link>
		<dc:creator>The Life of Matt Campos &#187; Blog Archive &#187; PHP - Convert American to European Date Format</dc:creator>
		<pubDate>Wed, 17 Oct 2007 17:31:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/#comment-27607</guid>
		<description>[...] Thanks to last-child.com for the Snippet. [...]</description>
		<content:encoded><![CDATA[<p>[...] Thanks to last-child.com for the Snippet. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP - Convert American to European Date Format at GraysUnderground.com</title>
		<link>http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/comment-page-1/#comment-27604</link>
		<dc:creator>PHP - Convert American to European Date Format at GraysUnderground.com</dc:creator>
		<pubDate>Tue, 16 Oct 2007 14:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/#comment-27604</guid>
		<description>[...] Thanks to last-child.com for the Snippet. [...]</description>
		<content:encoded><![CDATA[<p>[...] Thanks to last-child.com for the Snippet. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/comment-page-1/#comment-27536</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Thu, 20 Sep 2007 18:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/#comment-27536</guid>
		<description>Awesome!  Although I used $3-$1-$2 (instead of the \\ notation)</description>
		<content:encoded><![CDATA[<p>Awesome!  Although I used $3-$1-$2 (instead of the \\ notation)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/comment-page-1/#comment-27482</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Wed, 15 Aug 2007 09:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/#comment-27482</guid>
		<description>&gt; print ereg_replace(“([0-9] )/([0-9] )/([0-9] )”,\\2/\\1/\\3,$date);

should be: print ereg_replace(&quot;([0-9] )/([0-9] )/([0-9] )&quot;,&quot;\\2/\\1/\\3&quot;,$date);</description>
		<content:encoded><![CDATA[<p>&gt; print ereg_replace(“([0-9] )/([0-9] )/([0-9] )”,\\2/\\1/\\3,$date);</p>
<p>should be: print ereg_replace(&#8221;([0-9] )/([0-9] )/([0-9] )&#8221;,&#8221;\\2/\\1/\\3&#8243;,$date);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amadeke</title>
		<link>http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/comment-page-1/#comment-22343</link>
		<dc:creator>Amadeke</dc:creator>
		<pubDate>Wed, 23 May 2007 08:19:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.last-child.com/convert-american-date-format-to-european-and-vice-versa/#comment-22343</guid>
		<description>don&#039;t seem to work as php script</description>
		<content:encoded><![CDATA[<p>don&#8217;t seem to work as php script</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.161 seconds -->
