<?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: PHP Calculate Age</title>
	<atom:link href="http://www.bradino.com/php/calculate-age/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bradino.com/php/calculate-age/</link>
	<description>Just another Wordpress blog</description>
	<lastBuildDate>Sat, 04 Feb 2012 23:14:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Aart</title>
		<link>http://www.bradino.com/php/calculate-age/#comment-2941</link>
		<dc:creator>Aart</dc:creator>
		<pubDate>Mon, 07 Nov 2011 18:15:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradino.com/php/calculate-age/#comment-2941</guid>
		<description>This is a better way that displays the age CORRECTLY. ;)
function getAge( $p_strDate ) {
    list($Y,$m,$d)    = explode(&quot;-&quot;,$p_strDate);
    $years            = date(&quot;Y&quot;) - $Y;
    
    if( date(&quot;md&quot;) &lt; $m.$d ) { $years--; }
    return $years;
}</description>
		<content:encoded><![CDATA[<p>This is a better way that displays the age CORRECTLY. <img src='http://www.bradino.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
function getAge( $p_strDate ) {<br />
    list($Y,$m,$d)    = explode(&#8220;-&#8221;,$p_strDate);<br />
    $years            = date(&#8220;Y&#8221;) &#8211; $Y;</p>
<p>    if( date(&#8220;md&#8221;) &lt; $m.$d ) { $years&#8211;; }<br />
    return $years;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.bradino.com/php/calculate-age/#comment-2926</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 17 Oct 2011 01:17:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.bradino.com/php/calculate-age/#comment-2926</guid>
		<description>THANK THE FUCKING LORD YOU EXIST</description>
		<content:encoded><![CDATA[<p>THANK THE FUCKING LORD YOU EXIST</p>
]]></content:encoded>
	</item>
</channel>
</rss>

